#12207F#12207F
#12207F is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.3% C 0.158 H 267.8°. Best body text is #FFFFFF at 13.65:1 contrast (WCAG AA passes).
Color values
| HEX | #12207F |
|---|---|
| RGB | rgb(18, 32, 127) |
| HSL | hsl(232, 75%, 28%) |
| HSV | hsv(232, 86%, 50%) |
| CMYK | cmyk(85.8%, 74.8%, 0%, 50.2%) |
| CIE-LAB | lab(18.77, 32.27, -54.40) |
| CIE-LCH | lch(18.77, 63.25, 300.68°) |
| OKLab | oklab(31.3% -0.0059 -0.1577) |
| OKLCH | oklch(31.3% 0.158 267.8) |
| XYZ | xyz(4.5954, 2.6934, 20.3522) |
| Luminance | 0.0269 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.89
Royal
#0C1793
ΔE00 3.90
Dark Royal Blue
#02066F
ΔE00 6.00
Darkblue
#00008B
ΔE00 6.36
Navy
#000080
ΔE00 6.38
Deep Blue
#040273
ΔE00 6.46
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#12207F #7F7112
analogous
#12567F #12207F #3B127F
triadic
#12207F #7F1220 #207F12
tetradic
#12207F #7F1256 #7F7112 #127F3B
square
#12207F #7F1256 #7F7112 #127F3B
split-complementary
#12207F #7F3B12 #567F12
monochromatic
#04071B #0A1249 #12207F #1A2EB5 #2B42E1
Accessibility & contrast
On white
13.65
#12207F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.54
#12207F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #12207F
13.65:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##12207F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##12207F | 1.00 | 13.65 | 1.54 | 13.65 |
| #FFFFFF | 13.65 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.54 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.65 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003382
Deuteranopia (green-blind)
#00287D
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #12207f; /* rgb */ color: rgb(18, 32, 127); /* oklch */ color: oklch(31.3% 0.158 267.8);
Tailwind
colors: {
custom: {
50: '#675ca5',
500: '#12207f',
950: '#000000',
},
}SCSS
$custom: #12207f; $custom-light: #675ca5; $custom-dark: #000000;
JSON
{
"hex": "#12207f",
"rgb": {
"r": 18,
"g": 32,
"b": 127
},
"hsl": {
"h": 232.294,
"s": 75.172,
"l": 28.431
},
"oklch": {
"l": 0.31297,
"c": 0.15779,
"h": 267.8
},
"luminance": 0.02694
}Semantic roles & 50–950 ramp
primary
#12207F
secondary
#B5A538
accent
#DA36F2
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F