#2F3871#2F3871
#2F3871 is a dark, moderate blue. Relative luminance 0.046; OKLCH L 36.5% C 0.098 H 273.8°. Best body text is #FFFFFF at 10.91:1 contrast (WCAG AA passes).
Color values
| HEX | #2F3871 |
|---|---|
| RGB | rgb(47, 56, 113) |
| HSL | hsl(232, 41%, 31%) |
| HSV | hsv(232, 58%, 44%) |
| CMYK | cmyk(58.4%, 50.4%, 0%, 55.7%) |
| CIE-LAB | lab(25.64, 14.70, -34.23) |
| CIE-LCH | lch(25.64, 37.25, 293.24°) |
| OKLab | oklab(36.45% 0.0065 -0.0976) |
| OKLCH | oklch(36.45% 0.098 273.8) |
| XYZ | xyz(5.5661, 4.6245, 16.2189) |
| Luminance | 0.0462 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Marine
#042E60
ΔE00 6.30
Darkslateblue
#483D8B
ΔE00 6.30
Marine Blue
#01386A
ΔE00 7.02
Blueberry
#464196
ΔE00 7.18
Darkish Blue
#014182
ΔE00 7.66
Navy Blue
#1B2A4A
ΔE00 7.76
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F3871 #71682F
analogous
#2F5971 #2F3871 #472F71
triadic
#2F3871 #712F38 #38712F
tetradic
#2F3871 #712F59 #71682F #2F7147
square
#2F3871 #712F59 #71682F #2F7147
split-complementary
#2F3871 #71472F #59712F
monochromatic
#0B0D1B #1D2346 #2F3871 #414D9C #5E6BBC
Accessibility & contrast
On white
10.91
#2F3871 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.93
#2F3871 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F3871
10.91:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F3871 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F3871 | 1.00 | 10.91 | 1.93 | 10.91 |
| #FFFFFF | 10.91 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.93 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.91 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1D4073
Deuteranopia (green-blind)
#143A70
Tritanopia (blue-blind)
#0A454F
Achromatopsia (no color)
#3D3D3D
Design tokens & code
CSS
--color: #2f3871; /* rgb */ color: rgb(47, 56, 113); /* oklch */ color: oklch(36.5% 0.098 273.8);
Tailwind
colors: {
custom: {
50: '#6d6e9a',
500: '#2f3871',
950: '#000000',
},
}SCSS
$custom: #2f3871; $custom-light: #6d6e9a; $custom-dark: #000000;
JSON
{
"hex": "#2f3871",
"rgb": {
"r": 47,
"g": 56,
"b": 113
},
"hsl": {
"h": 231.818,
"s": 41.25,
"l": 31.373
},
"oklch": {
"l": 0.36451,
"c": 0.09786,
"h": 273.8
},
"luminance": 0.04625
}Semantic roles & 50–950 ramp
primary
#2F3871
secondary
#A2985A
accent
#C057D1
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07070E
muted
#7A7A7E