#0F408E#0F408E
#0F408E is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.1% C 0.139 H 259.9°. Best body text is #FFFFFF at 9.79:1 contrast (WCAG AA passes).
Color values
| HEX | #0F408E |
|---|---|
| RGB | rgb(15, 64, 142) |
| HSL | hsl(217, 81%, 31%) |
| HSV | hsv(217, 89%, 56%) |
| CMYK | cmyk(89.4%, 54.9%, 0%, 44.3%) |
| CIE-LAB | lab(28.70, 16.04, -47.53) |
| CIE-LCH | lch(28.70, 50.17, 288.64°) |
| OKLab | oklab(39.07% -0.0244 -0.1372) |
| OKLCH | oklch(39.07% 0.139 259.9) |
| XYZ | xyz(6.9111, 5.7205, 26.3258) |
| Luminance | 0.0572 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 2.56
Darkish Blue
#014182
ΔE00 2.58
Twilight Blue
#0A437A
ΔE00 3.84
Cobalt
#0047AB
ΔE00 4.17
Prussian Blue
#004577
ΔE00 5.26
Marine Blue
#01386A
ΔE00 5.45
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#0F408E #8E5D0F
analogous
#0F7F8E #0F408E #1D0F8E
triadic
#0F408E #8E0F40 #408E0F
tetradic
#0F408E #8E0F7F #8E5D0F #0F8E1D
square
#0F408E #8E0F7F #8E5D0F #0F8E1D
split-complementary
#0F408E #8E1D0F #7F8E0F
monochromatic
#030E1F #092757 #0F408E #1559C5 #2E76E9
Accessibility & contrast
On white
9.79
#0F408E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.14
#0F408E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #0F408E
9.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##0F408E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##0F408E | 1.00 | 9.79 | 2.14 | 9.79 |
| #FFFFFF | 9.79 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.14 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.79 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004A91
Deuteranopia (green-blind)
#003E8C
Tritanopia (blue-blind)
#005360
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #0f408e; /* rgb */ color: rgb(15, 64, 142); /* oklch */ color: oklch(39.1% 0.139 259.9);
Tailwind
colors: {
custom: {
50: '#6874b0',
500: '#0f408e',
950: '#000000',
},
}SCSS
$custom: #0f408e; $custom-light: #6874b0; $custom-dark: #000000;
JSON
{
"hex": "#0f408e",
"rgb": {
"r": 15,
"g": 64,
"b": 142
},
"hsl": {
"h": 216.85,
"s": 80.892,
"l": 30.784
},
"oklch": {
"l": 0.39066,
"c": 0.13939,
"h": 259.9
},
"luminance": 0.05721
}Semantic roles & 50–950 ramp
primary
#0F408E
secondary
#C38C36
accent
#AB31F7
background
#F6F7FA
surface
#ECEDF5
border
#C7C8CF
text
#070810
muted
#7A7B7F