#2F408D#2F408D
#2F408D is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.3% C 0.129 H 270.3°. Best body text is #FFFFFF at 9.38:1 contrast (WCAG AA passes).
Color values
| HEX | #2F408D |
|---|---|
| RGB | rgb(47, 64, 141) |
| HSL | hsl(229, 50%, 37%) |
| HSV | hsv(229, 67%, 55%) |
| CMYK | cmyk(66.7%, 54.6%, 0%, 44.7%) |
| CIE-LAB | lab(29.90, 19.57, -44.91) |
| CIE-LCH | lch(29.90, 48.99, 293.54°) |
| OKLab | oklab(40.3% 0.0006 -0.129) |
| OKLCH | oklch(40.3% 0.129 270.3) |
| XYZ | xyz(7.8118, 6.1935, 25.9779) |
| Luminance | 0.0619 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 4.38
Cobalt (survey)
#1E488F
ΔE00 4.51
Darkslateblue
#483D8B
ΔE00 5.39
Sapphire (survey)
#2138AB
ΔE00 5.48
Cobalt
#0047AB
ΔE00 5.67
Darkish Blue
#014182
ΔE00 5.83
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F408D #8D7C2F
analogous
#2F6F8D #2F408D #4D2F8D
triadic
#2F408D #8D2F40 #408D2F
tetradic
#2F408D #8D2F6F #8D7C2F #2F8D4D
square
#2F408D #8D2F6F #8D7C2F #2F8D4D
split-complementary
#2F408D #8D4D2F #6F8D2F
monochromatic
#101631 #202B5F #2F408D #3E55BB #697BCD
Accessibility & contrast
On white
9.38
#2F408D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.24
#2F408D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F408D
9.38:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F408D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F408D | 1.00 | 9.38 | 2.24 | 9.38 |
| #FFFFFF | 9.38 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.24 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.38 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0C4B90
Deuteranopia (green-blind)
#00428B
Tritanopia (blue-blind)
#005260
Achromatopsia (no color)
#464646
Design tokens & code
CSS
--color: #2f408d; /* rgb */ color: rgb(47, 64, 141); /* oklch */ color: oklch(40.3% 0.129 270.3);
Tailwind
colors: {
custom: {
50: '#7274af',
500: '#2f408d',
950: '#000000',
},
}SCSS
$custom: #2f408d; $custom-light: #7274af; $custom-dark: #000000;
JSON
{
"hex": "#2f408d",
"rgb": {
"r": 47,
"g": 64,
"b": 141
},
"hsl": {
"h": 229.149,
"s": 50,
"l": 36.863
},
"oklch": {
"l": 0.40303,
"c": 0.12898,
"h": 270.3
},
"luminance": 0.06194
}Semantic roles & 50–950 ramp
primary
#2F408D
secondary
#B4A664
accent
#C04EDA
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#090810
muted
#7B7B7F