#12127F#12127F
#12127F is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.3% C 0.171 H 269.2°. Best body text is #FFFFFF at 14.80:1 contrast (WCAG AA passes).
Color values
| HEX | #12127F |
|---|---|
| RGB | rgb(18, 18, 127) |
| HSL | hsl(240, 75%, 28%) |
| HSV | hsv(240, 86%, 50%) |
| CMYK | cmyk(85.8%, 85.8%, 0%, 50.2%) |
| CIE-LAB | lab(15.97, 40.30, -59.05) |
| CIE-LCH | lch(15.97, 71.49, 304.31°) |
| OKLab | oklab(29.32% -0.0023 -0.1709) |
| OKLCH | oklch(29.32% 0.171 269.2) |
| XYZ | xyz(4.2952, 2.0930, 20.2522) |
| Luminance | 0.0209 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Navy
#000080
ΔE00 2.97
Royal
#0C1793
ΔE00 2.99
Midnight Blue
#191970
ΔE00 3.11
Darkblue
#00008B
ΔE00 3.18
Dark Royal Blue
#02066F
ΔE00 3.23
Deep Blue
#040273
ΔE00 3.31
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#12127F #7F7F12
analogous
#12487F #12127F #48127F
triadic
#12127F #7F1212 #127F12
tetradic
#12127F #7F1248 #7F7F12 #127F48
square
#12127F #7F1248 #7F7F12 #127F48
split-complementary
#12127F #7F4812 #487F12
monochromatic
#04041B #0A0A49 #12127F #1A1AB5 #2B2BE1
Accessibility & contrast
On white
14.80
#12127F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.42
#12127F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #12127F
14.80:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##12127F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##12127F | 1.00 | 14.80 | 1.42 | 14.80 |
| #FFFFFF | 14.80 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.42 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.80 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002D82
Deuteranopia (green-blind)
#00227D
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#282828
Design tokens & code
CSS
--color: #12127f; /* rgb */ color: rgb(18, 18, 127); /* oklch */ color: oklch(29.3% 0.171 269.2);
Tailwind
colors: {
custom: {
50: '#6953a5',
500: '#12127f',
950: '#000000',
},
}SCSS
$custom: #12127f; $custom-light: #6953a5; $custom-dark: #000000;
JSON
{
"hex": "#12127f",
"rgb": {
"r": 18,
"g": 18,
"b": 127
},
"hsl": {
"h": 240,
"s": 75.172,
"l": 28.431
},
"oklch": {
"l": 0.29319,
"c": 0.17097,
"h": 269.2
},
"luminance": 0.02094
}Semantic roles & 50–950 ramp
primary
#12127F
secondary
#B5B538
accent
#F236F2
background
#F6F4FA
surface
#ECE8F4
border
#C7C4CE
text
#08030F
muted
#7A787F