#12254F#12254F
#12254F is a dark, moderate blue. Relative luminance 0.020; OKLCH L 27.5% C 0.081 H 263.6°. Best body text is #FFFFFF at 14.97:1 contrast (WCAG AA passes).
Color values
| HEX | #12254F |
|---|---|
| RGB | rgb(18, 37, 79) |
| HSL | hsl(221, 63%, 19%) |
| HSV | hsv(221, 77%, 31%) |
| CMYK | cmyk(77.2%, 53.2%, 0%, 69%) |
| CIE-LAB | lab(15.57, 9.00, -28.14) |
| CIE-LCH | lch(15.57, 29.54, 287.73°) |
| OKLab | oklab(27.53% -0.009 -0.0807) |
| OKLCH | oklch(27.53% 0.081 263.6) |
| XYZ | xyz(2.3218, 2.0160, 7.6624) |
| Luminance | 0.0202 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Navy Blue
#1B2A4A
ΔE00 3.04
Marine
#042E60
ΔE00 4.46
Navy (survey)
#01153E
ΔE00 5.02
Navy Blue (survey)
#001146
ΔE00 6.56
Marine Blue
#01386A
ΔE00 7.88
Dark Navy
#000435
ΔE00 8.49
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#12254F #4F3C12
analogous
#12444F #12254F #1E124F
triadic
#12254F #4F1225 #254F12
tetradic
#12254F #4F1244 #4F3C12 #124F1E
square
#12254F #4F1244 #4F3C12 #124F1E
split-complementary
#12254F #4F1E12 #444F12
monochromatic
#060C19 #070E1D #12254F #1D3C81 #2954B3
Accessibility & contrast
On white
14.97
#12254F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.40
#12254F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #12254F
14.97:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##12254F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##12254F | 1.00 | 14.97 | 1.40 | 14.97 |
| #FFFFFF | 14.97 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.40 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.97 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0E2A51
Deuteranopia (green-blind)
#01244E
Tritanopia (blue-blind)
#002F36
Achromatopsia (no color)
#272727
Design tokens & code
CSS
--color: #12254f; /* rgb */ color: rgb(18, 37, 79); /* oklch */ color: oklch(27.5% 0.081 263.6);
Tailwind
colors: {
custom: {
50: '#595f81',
500: '#12254f',
950: '#000000',
},
}SCSS
$custom: #12254f; $custom-light: #595f81; $custom-dark: #000000;
JSON
{
"hex": "#12254f",
"rgb": {
"r": 18,
"g": 37,
"b": 79
},
"hsl": {
"h": 221.311,
"s": 62.887,
"l": 19.02
},
"oklch": {
"l": 0.27525,
"c": 0.08122,
"h": 263.6
},
"luminance": 0.02016
}Semantic roles & 50–950 ramp
primary
#12254F
secondary
#886E35
accent
#B342E6
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04040A
muted
#79797C