#2F408E#2F408E
#2F408E is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.4% C 0.130 H 270.3°. Best body text is #FFFFFF at 9.35:1 contrast (WCAG AA passes).
Color values
| HEX | #2F408E |
|---|---|
| RGB | rgb(47, 64, 142) |
| HSL | hsl(229, 50%, 37%) |
| HSV | hsv(229, 67%, 56%) |
| CMYK | cmyk(66.9%, 54.9%, 0%, 44.3%) |
| CIE-LAB | lab(29.97, 19.94, -45.41) |
| CIE-LCH | lch(29.97, 49.60, 293.70°) |
| OKLab | oklab(40.38% 0.0007 -0.1304) |
| OKLCH | oklch(40.38% 0.13 270.3) |
| XYZ | xyz(7.8865, 6.2234, 26.3716) |
| Luminance | 0.0622 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 4.31
Cobalt (survey)
#1E488F
ΔE00 4.53
Sapphire (survey)
#2138AB
ΔE00 5.33
Darkslateblue
#483D8B
ΔE00 5.37
Cobalt
#0047AB
ΔE00 5.58
Darkish Blue
#014182
ΔE00 5.90
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F408E #8E7D2F
analogous
#2F708E #2F408E #4D2F8E
triadic
#2F408E #8E2F40 #408E2F
tetradic
#2F408E #8E2F70 #8E7D2F #2F8E4D
square
#2F408E #8E2F70 #8E7D2F #2F8E4D
split-complementary
#2F408E #8E4D2F #708E2F
monochromatic
#111732 #202B60 #2F408E #3E55BC #6A7CCE
Accessibility & contrast
On white
9.35
#2F408E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.24
#2F408E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F408E
9.35:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F408E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F408E | 1.00 | 9.35 | 2.24 | 9.35 |
| #FFFFFF | 9.35 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.24 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.35 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#094B91
Deuteranopia (green-blind)
#00428C
Tritanopia (blue-blind)
#005260
Achromatopsia (no color)
#474747
Design tokens & code
CSS
--color: #2f408e; /* rgb */ color: rgb(47, 64, 142); /* oklch */ color: oklch(40.4% 0.130 270.3);
Tailwind
colors: {
custom: {
50: '#7374b0',
500: '#2f408e',
950: '#000000',
},
}SCSS
$custom: #2f408e; $custom-light: #7374b0; $custom-dark: #000000;
JSON
{
"hex": "#2f408e",
"rgb": {
"r": 47,
"g": 64,
"b": 142
},
"hsl": {
"h": 229.263,
"s": 50.265,
"l": 37.059
},
"oklch": {
"l": 0.40382,
"c": 0.13044,
"h": 270.3
},
"luminance": 0.06224
}Semantic roles & 50–950 ramp
primary
#2F408E
secondary
#B5A664
accent
#C14EDA
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#090810
muted
#7B7B7F