#2F387F#2F387F
#2F387F is a dark, moderate blue. Relative luminance 0.050; OKLCH L 37.5% C 0.119 H 273.8°. Best body text is #FFFFFF at 10.54:1 contrast (WCAG AA passes).
Color values
| HEX | #2F387F |
|---|---|
| RGB | rgb(47, 56, 127) |
| HSL | hsl(233, 46%, 34%) |
| HSV | hsv(233, 63%, 50%) |
| CMYK | cmyk(63%, 55.9%, 0%, 50.2%) |
| CIE-LAB | lab(26.63, 19.82, -41.48) |
| CIE-LCH | lch(26.63, 45.98, 295.54°) |
| OKLab | oklab(37.52% 0.0078 -0.119) |
| OKLCH | oklch(37.52% 0.119 273.8) |
| XYZ | xyz(6.4160, 4.9645, 20.6947) |
| Luminance | 0.0496 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 4.85
Blueberry
#464196
ΔE00 5.27
Sapphire (survey)
#2138AB
ΔE00 6.87
Cobalt (survey)
#1E488F
ΔE00 7.11
Marine
#042E60
ΔE00 7.31
Darkish Blue
#014182
ΔE00 7.31
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F387F #7F762F
analogous
#2F607F #2F387F #4E2F7F
triadic
#2F387F #7F2F38 #387F2F
tetradic
#2F387F #7F2F60 #7F762F #2F7F4E
square
#2F387F #7F2F60 #7F762F #2F7F4E
split-complementary
#2F387F #7F4E2F #607F2F
monochromatic
#0E1126 #1E2452 #2F387F #404CAC #636EC5
Accessibility & contrast
On white
10.54
#2F387F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.99
#2F387F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F387F
10.54:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F387F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F387F | 1.00 | 10.54 | 1.99 | 10.54 |
| #FFFFFF | 10.54 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.99 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.54 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#084381
Deuteranopia (green-blind)
#003C7E
Tritanopia (blue-blind)
#004956
Achromatopsia (no color)
#3F3F3F
Design tokens & code
CSS
--color: #2f387f; /* rgb */ color: rgb(47, 56, 127); /* oklch */ color: oklch(37.5% 0.119 273.8);
Tailwind
colors: {
custom: {
50: '#706ea5',
500: '#2f387f',
950: '#000000',
},
}SCSS
$custom: #2f387f; $custom-light: #706ea5; $custom-dark: #000000;
JSON
{
"hex": "#2f387f",
"rgb": {
"r": 47,
"g": 56,
"b": 127
},
"hsl": {
"h": 233.25,
"s": 45.977,
"l": 34.118
},
"oklch": {
"l": 0.37521,
"c": 0.11925,
"h": 273.8
},
"luminance": 0.04965
}Semantic roles & 50–950 ramp
primary
#2F387F
secondary
#ACA35E
accent
#C752D6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08070F
muted
#7B7A7F