#1C1928

A color in the Violet family

#1c1928 is a color in the Violet family: RGB(28, 25, 40), HSL(252°, 23%, 13%), CMYK(30%, 38%, 0%, 84%). Closest named color: midnightblue. Contrast is 17.23:1 on white and 1.22:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#1c1928
RGBrgb(28 25 40)
RGB (legacy)rgb(28, 25, 40)
RGB %rgb(11% 10% 16%)
HSLhsl(252 23% 13%)
HSV / HSBhsv(252, 38%, 16%)
HWBhwb(252 10% 84%)
CMYKcmyk(30%, 38%, 0%, 84%)
CIELAB (D50)lab(9.67 4.71 -9.76)
LCHlch(9.67 10.83 295.76)
OKLaboklab(0.2243 0.0114 -0.0267)
OKLCHoklch(0.2243 0.0291 293.08)
Decimal1841448

Properties

Color ToneViolet
Closest named colormidnightblue ΔE 13.3
Closest web-safe color#330033
Hue252°
Saturation (HSL / HSV)23% / 38%
Lightness (HSL)13%
Brightness or Value (HSV)16%
Luminance (Rec.601 / Rec.709)11% / 10%
Relative luminance (WCAG)0.011
Red / Green / Blue28 / 25 / 40

WCAG 2.2 Contrast Ratio

On White (#ffffff)
17.23:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
1.22:1
AA Normal (4.5:1) · FailAA Large (3:1) · FailAAA Normal (7:1) · Fail
Aa Bb 123

APCA Contrast Lc (reference) — As text on white / black: Lc 104.1 / 0 · As background with white / black text: Lc -106.4 / 0

Lightness Scale (OKLCH 50–950)

Eleven steps that change only perceived lightness while keeping hue and chroma — ready to use as design-system color tokens.

Tints (mixed with white)

Shades (mixed with black)

Color Harmonies

Color Vision Deficiency Simulation

Estimated appearance of this color for people with color vision deficiencies (Machado 2009).

Similar Named Colors

Use in CSS

:root {
  --color-brand: #1c1928;
  --color-brand-oklch: oklch(22.43% 0.0291 293.08);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(28 25 40 / 50%); }
/* Tailwind CSS */
<div class="bg-[#1c1928] text-[#1c1928] border-[#1c1928]">