#2F408F#2F408F
#2F408F is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.5% C 0.132 H 270.3°. Best body text is #FFFFFF at 9.33:1 contrast (WCAG AA passes).
Color values
| HEX | #2F408F |
|---|---|
| RGB | rgb(47, 64, 143) |
| HSL | hsl(229, 51%, 37%) |
| HSV | hsv(229, 67%, 56%) |
| CMYK | cmyk(67.1%, 55.2%, 0%, 43.9%) |
| CIE-LAB | lab(30.04, 20.31, -45.91) |
| CIE-LCH | lch(30.04, 50.20, 293.87°) |
| OKLab | oklab(40.46% 0.0008 -0.1319) |
| OKLCH | oklch(40.46% 0.132 270.3) |
| XYZ | xyz(7.9619, 6.2536, 26.7687) |
| Luminance | 0.0625 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 4.25
Cobalt (survey)
#1E488F
ΔE00 4.56
Sapphire (survey)
#2138AB
ΔE00 5.18
Darkslateblue
#483D8B
ΔE00 5.36
Cobalt
#0047AB
ΔE00 5.49
Darkish Blue
#014182
ΔE00 5.96
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F408F #8F7E2F
analogous
#2F708F #2F408F #4E2F8F
triadic
#2F408F #8F2F40 #408F2F
tetradic
#2F408F #8F2F70 #8F7E2F #2F8F4E
square
#2F408F #8F2F70 #8F7E2F #2F8F4E
split-complementary
#2F408F #8F4E2F #708F2F
monochromatic
#111733 #202B61 #2F408F #3E55BD #6A7CCE
Accessibility & contrast
On white
9.33
#2F408F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.25
#2F408F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F408F
9.33:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F408F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F408F | 1.00 | 9.33 | 2.25 | 9.33 |
| #FFFFFF | 9.33 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.25 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.33 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#074B92
Deuteranopia (green-blind)
#00438D
Tritanopia (blue-blind)
#005361
Achromatopsia (no color)
#474747
Design tokens & code
CSS
--color: #2f408f; /* rgb */ color: rgb(47, 64, 143); /* oklch */ color: oklch(40.5% 0.132 270.3);
Tailwind
colors: {
custom: {
50: '#7374b0',
500: '#2f408f',
950: '#000000',
},
}SCSS
$custom: #2f408f; $custom-light: #7374b0; $custom-dark: #000000;
JSON
{
"hex": "#2f408f",
"rgb": {
"r": 47,
"g": 64,
"b": 143
},
"hsl": {
"h": 229.375,
"s": 50.526,
"l": 37.255
},
"oklch": {
"l": 0.40461,
"c": 0.13189,
"h": 270.3
},
"luminance": 0.06254
}Semantic roles & 50–950 ramp
primary
#2F408F
secondary
#B5A765
accent
#C14EDA
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#090811
muted
#7B7B80