#12408F#12408F
#12408F is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.2% C 0.140 H 260.6°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).
Color values
| HEX | #12408F |
|---|---|
| RGB | rgb(18, 64, 143) |
| HSL | hsl(218, 78%, 32%) |
| HSV | hsv(218, 87%, 56%) |
| CMYK | cmyk(87.4%, 55.2%, 0%, 43.9%) |
| CIE-LAB | lab(28.84, 16.68, -47.91) |
| CIE-LCH | lch(28.84, 50.72, 289.19°) |
| OKLab | oklab(39.22% -0.0228 -0.1383) |
| OKLCH | oklch(39.22% 0.14 260.6) |
| XYZ | xyz(7.0390, 5.7777, 26.7255) |
| Luminance | 0.0578 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 2.61
Darkish Blue
#014182
ΔE00 2.88
Cobalt
#0047AB
ΔE00 4.06
Twilight Blue
#0A437A
ΔE00 4.12
Prussian Blue
#004577
ΔE00 5.53
Marine Blue
#01386A
ΔE00 5.68
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#12408F #8F6112
analogous
#127F8F #12408F #23128F
triadic
#12408F #8F1240 #408F12
tetradic
#12408F #8F127F #8F6112 #128F23
square
#12408F #8F127F #8F6112 #128F23
split-complementary
#12408F #8F2312 #7F8F12
monochromatic
#040F22 #0B2859 #12408F #1958C5 #3676E6
Accessibility & contrast
On white
9.74
#12408F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.16
#12408F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #12408F
9.74:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##12408F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##12408F | 1.00 | 9.74 | 2.16 | 9.74 |
| #FFFFFF | 9.74 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.16 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.74 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004A92
Deuteranopia (green-blind)
#003F8D
Tritanopia (blue-blind)
#005461
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #12408f; /* rgb */ color: rgb(18, 64, 143); /* oklch */ color: oklch(39.2% 0.140 260.6);
Tailwind
colors: {
custom: {
50: '#6974b0',
500: '#12408f',
950: '#000000',
},
}SCSS
$custom: #12408f; $custom-light: #6974b0; $custom-dark: #000000;
JSON
{
"hex": "#12408f",
"rgb": {
"r": 18,
"g": 64,
"b": 143
},
"hsl": {
"h": 217.92,
"s": 77.64,
"l": 31.569
},
"oklch": {
"l": 0.39223,
"c": 0.14016,
"h": 260.6
},
"luminance": 0.05779
}Semantic roles & 50–950 ramp
primary
#12408F
secondary
#C3913A
accent
#AD34F4
background
#F6F7FA
surface
#ECEDF5
border
#C7C8CF
text
#070811
muted
#7A7B80