#2F408B#2F408B
#2F408B is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.1% C 0.126 H 270.2°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).
Color values
| HEX | #2F408B |
|---|---|
| RGB | rgb(47, 64, 139) |
| HSL | hsl(229, 49%, 36%) |
| HSV | hsv(229, 66%, 55%) |
| CMYK | cmyk(66.2%, 54%, 0%, 45.5%) |
| CIE-LAB | lab(29.75, 18.82, -43.92) |
| CIE-LCH | lch(29.75, 47.78, 293.19°) |
| OKLab | oklab(40.15% 0.0005 -0.126) |
| OKLCH | oklch(40.15% 0.126 270.2) |
| XYZ | xyz(7.6643, 6.1345, 25.2013) |
| Luminance | 0.0614 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Cobalt (survey)
#1E488F
ΔE00 4.47
Blueberry
#464196
ΔE00 4.54
Darkslateblue
#483D8B
ΔE00 5.43
Darkish Blue
#014182
ΔE00 5.72
Sapphire (survey)
#2138AB
ΔE00 5.78
Cobalt
#0047AB
ΔE00 5.86
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F408B #8B7A2F
analogous
#2F6E8B #2F408B #4C2F8B
triadic
#2F408B #8B2F40 #408B2F
tetradic
#2F408B #8B2F6E #8B7A2F #2F8B4C
square
#2F408B #8B2F6E #8B7A2F #2F8B4C
split-complementary
#2F408B #8B4C2F #6E8B2F
monochromatic
#101630 #202B5D #2F408B #3E55B9 #687BCC
Accessibility & contrast
On white
9.43
#2F408B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.23
#2F408B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F408B
9.43:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F408B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F408B | 1.00 | 9.43 | 2.23 | 9.43 |
| #FFFFFF | 9.43 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.23 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.43 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#114A8E
Deuteranopia (green-blind)
#004289
Tritanopia (blue-blind)
#00525F
Achromatopsia (no color)
#464646
Design tokens & code
CSS
--color: #2f408b; /* rgb */ color: rgb(47, 64, 139); /* oklch */ color: oklch(40.1% 0.126 270.2);
Tailwind
colors: {
custom: {
50: '#7274ad',
500: '#2f408b',
950: '#000000',
},
}SCSS
$custom: #2f408b; $custom-light: #7274ad; $custom-dark: #000000;
JSON
{
"hex": "#2f408b",
"rgb": {
"r": 47,
"g": 64,
"b": 139
},
"hsl": {
"h": 228.913,
"s": 49.462,
"l": 36.471
},
"oklch": {
"l": 0.40146,
"c": 0.12604,
"h": 270.2
},
"luminance": 0.06135
}Semantic roles & 50–950 ramp
primary
#2F408B
secondary
#B3A463
accent
#BF4FD9
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#090810
muted
#7B7B7F