#221828#221828
#221828 is a very dark, muted violet. Relative luminance 0.011; OKLCH L 22.9% C 0.033 H 312.3°. Best body text is #FFFFFF at 17.08:1 contrast (WCAG AA passes).
Color values
| HEX | #221828 |
|---|---|
| RGB | rgb(34, 24, 40) |
| HSL | hsl(278, 25%, 13%) |
| HSV | hsv(278, 40%, 16%) |
| CMYK | cmyk(15%, 40%, 0%, 84.3%) |
| CIE-LAB | lab(10.16, 8.91, -9.01) |
| CIE-LCH | lch(10.16, 12.68, 314.69°) |
| OKLab | oklab(22.9% 0.0225 -0.0247) |
| OKLCH | oklch(22.9% 0.033 312.3) |
| XYZ | xyz(1.3693, 1.1466, 2.1562) |
| Luminance | 0.0115 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Very Dark Brown
#1D0200
ΔE00 11.01
Midnight
#03012D
ΔE00 11.16
Dark
#1B2431
ΔE00 11.31
Dark Navy Blue
#00022E
ΔE00 11.58
Navy Blue
#1B2A4A
ΔE00 11.94
Eggplant
#380835
ΔE00 11.98
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#221828 #1E2818
analogous
#1A1828 #221828 #281826
triadic
#221828 #282218 #182822
tetradic
#221828 #281A18 #1E2818 #182628
square
#221828 #281A18 #1E2818 #182628
split-complementary
#221828 #262818 #18281A
monochromatic
#100B13 #100B13 #221828 #432F4E #634674
Accessibility & contrast
On white
17.08
#221828 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.23
#221828 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #221828
17.08:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##221828 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##221828 | 1.00 | 17.08 | 1.23 | 17.08 |
| #FFFFFF | 17.08 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.23 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 17.08 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#151B29
Deuteranopia (green-blind)
#181C28
Tritanopia (blue-blind)
#211A1E
Achromatopsia (no color)
#1C1C1C
Design tokens & code
CSS
--color: #221828; /* rgb */ color: rgb(34, 24, 40); /* oklch */ color: oklch(22.9% 0.033 312.3);
Tailwind
colors: {
custom: {
50: '#5d5462',
500: '#221828',
950: '#000000',
},
}SCSS
$custom: #221828; $custom-light: #5d5462; $custom-dark: #000000;
JSON
{
"hex": "#221828",
"rgb": {
"r": 34,
"g": 24,
"b": 40
},
"hsl": {
"h": 277.5,
"s": 25,
"l": 12.549
},
"oklch": {
"l": 0.22901,
"c": 0.03341,
"h": 312.3
},
"luminance": 0.01147
}Semantic roles & 50–950 ramp
primary
#221828
secondary
#4A5C40
accent
#C16689
background
#F5F4F5
surface
#E9E7EA
border
#C5C3C6
text
#040205
muted
#797879