#12227E#12227E
#12227E is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.5% C 0.154 H 267.5°. Best body text is #FFFFFF at 13.50:1 contrast (WCAG AA passes).
Color values
| HEX | #12227E |
|---|---|
| RGB | rgb(18, 34, 126) |
| HSL | hsl(231, 75%, 28%) |
| HSV | hsv(231, 86%, 49%) |
| CMYK | cmyk(85.7%, 73%, 0%, 50.6%) |
| CIE-LAB | lab(19.13, 30.59, -53.17) |
| CIE-LCH | lch(19.13, 61.34, 299.91°) |
| OKLab | oklab(31.53% -0.0066 -0.1541) |
| OKLCH | oklch(31.53% 0.154 267.5) |
| XYZ | xyz(4.5861, 2.7785, 20.0292) |
| Luminance | 0.0278 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.19
Royal
#0C1793
ΔE00 4.46
Dark Royal Blue
#02066F
ΔE00 6.54
Darkblue
#00008B
ΔE00 7.01
Navy
#000080
ΔE00 7.02
Deep Blue
#040273
ΔE00 7.05
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#12227E #7E6E12
analogous
#12587E #12227E #38127E
triadic
#12227E #7E1222 #227E12
tetradic
#12227E #7E1258 #7E6E12 #127E38
square
#12227E #7E1258 #7E6E12 #127E38
split-complementary
#12227E #7E3812 #587E12
monochromatic
#04071B #0A1448 #12227E #1A30B4 #2A45E1
Accessibility & contrast
On white
13.50
#12227E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.56
#12227E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #12227E
13.50:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##12227E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##12227E | 1.00 | 13.50 | 1.56 | 13.50 |
| #FFFFFF | 13.50 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.50 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003481
Deuteranopia (green-blind)
#00297C
Tritanopia (blue-blind)
#003C4D
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #12227e; /* rgb */ color: rgb(18, 34, 126); /* oklch */ color: oklch(31.5% 0.154 267.5);
Tailwind
colors: {
custom: {
50: '#675da4',
500: '#12227e',
950: '#000000',
},
}SCSS
$custom: #12227e; $custom-light: #675da4; $custom-dark: #000000;
JSON
{
"hex": "#12227e",
"rgb": {
"r": 18,
"g": 34,
"b": 126
},
"hsl": {
"h": 231.111,
"s": 75,
"l": 28.235
},
"oklch": {
"l": 0.31525,
"c": 0.15424,
"h": 267.5
},
"luminance": 0.02779
}Semantic roles & 50–950 ramp
primary
#12227E
secondary
#B4A138
accent
#D636F2
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F