#22297E#22297E
#22297E is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.6% C 0.141 H 272.4°. Best body text is #FFFFFF at 12.45:1 contrast (WCAG AA passes).
Color values
| HEX | #22297E |
|---|---|
| RGB | rgb(34, 41, 126) |
| HSL | hsl(235, 58%, 31%) |
| HSV | hsv(235, 73%, 49%) |
| CMYK | cmyk(73%, 67.5%, 0%, 50.6%) |
| CIE-LAB | lab(21.70, 27.54, -48.93) |
| CIE-LCH | lch(21.70, 56.14, 299.37°) |
| OKLab | oklab(33.61% 0.006 -0.1413) |
| OKLCH | oklch(33.61% 0.141 272.4) |
| XYZ | xyz(5.2173, 3.4318, 20.1221) |
| Luminance | 0.0343 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 4.54
Royal
#0C1793
ΔE00 5.92
Darkslateblue
#483D8B
ΔE00 7.38
Sapphire (survey)
#2138AB
ΔE00 7.38
Marine
#042E60
ΔE00 7.86
Blueberry
#464196
ΔE00 8.10
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#22297E #7E7722
analogous
#22577E #22297E #49227E
triadic
#22297E #7E2229 #297E22
tetradic
#22297E #7E2257 #7E7722 #227E49
square
#22297E #7E2257 #7E7722 #227E49
split-complementary
#22297E #7E4922 #577E22
monochromatic
#080A1E #15194E #22297E #2F39AE #4C56CF
Accessibility & contrast
On white
12.45
#22297E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.69
#22297E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #22297E
12.45:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##22297E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##22297E | 1.00 | 12.45 | 1.69 | 12.45 |
| #FFFFFF | 12.45 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.69 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.45 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003881
Deuteranopia (green-blind)
#00307C
Tritanopia (blue-blind)
#003F4F
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #22297e; /* rgb */ color: rgb(34, 41, 126); /* oklch */ color: oklch(33.6% 0.141 272.4);
Tailwind
colors: {
custom: {
50: '#6b63a4',
500: '#22297e',
950: '#000000',
},
}SCSS
$custom: #22297e; $custom-light: #6b63a4; $custom-dark: #000000;
JSON
{
"hex": "#22297e",
"rgb": {
"r": 34,
"g": 41,
"b": 126
},
"hsl": {
"h": 235.435,
"s": 57.5,
"l": 31.373
},
"oklch": {
"l": 0.33612,
"c": 0.14147,
"h": 272.4
},
"luminance": 0.03432
}Semantic roles & 50–950 ramp
primary
#22297E
secondary
#B1A94B
accent
#D547E1
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#08050F
muted
#7A797F