#2F3771#2F3771
#2F3771 is a dark, moderate blue. Relative luminance 0.045; OKLCH L 36.2% C 0.099 H 274.4°. Best body text is #FFFFFF at 11.02:1 contrast (WCAG AA passes).
Color values
| HEX | #2F3771 |
|---|---|
| RGB | rgb(47, 55, 113) |
| HSL | hsl(233, 41%, 31%) |
| HSV | hsv(233, 58%, 44%) |
| CMYK | cmyk(58.4%, 51.3%, 0%, 55.7%) |
| CIE-LAB | lab(25.35, 15.39, -34.70) |
| CIE-LCH | lch(25.35, 37.95, 293.92°) |
| OKLab | oklab(36.23% 0.0077 -0.099) |
| OKLCH | oklch(36.23% 0.099 274.4) |
| XYZ | xyz(5.5182, 4.5286, 16.2029) |
| Luminance | 0.0453 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 6.20
Marine
#042E60
ΔE00 6.35
Blueberry
#464196
ΔE00 7.16
Marine Blue
#01386A
ΔE00 7.22
Navy Blue
#1B2A4A
ΔE00 7.76
Darkish Blue
#014182
ΔE00 7.91
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F3771 #71692F
analogous
#2F5871 #2F3771 #482F71
triadic
#2F3771 #712F37 #37712F
tetradic
#2F3771 #712F58 #71692F #2F7148
square
#2F3771 #712F58 #71692F #2F7148
split-complementary
#2F3771 #71482F #58712F
monochromatic
#0B0D1B #1D2246 #2F3771 #414C9C #5E6ABC
Accessibility & contrast
On white
11.02
#2F3771 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.91
#2F3771 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F3771
11.02:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F3771 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F3771 | 1.00 | 11.02 | 1.91 | 11.02 |
| #FFFFFF | 11.02 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.91 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.02 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1B3F73
Deuteranopia (green-blind)
#113970
Tritanopia (blue-blind)
#0B444E
Achromatopsia (no color)
#3C3C3C
Design tokens & code
CSS
--color: #2f3771; /* rgb */ color: rgb(47, 55, 113); /* oklch */ color: oklch(36.2% 0.099 274.4);
Tailwind
colors: {
custom: {
50: '#6e6d9a',
500: '#2f3771',
950: '#000000',
},
}SCSS
$custom: #2f3771; $custom-light: #6e6d9a; $custom-dark: #000000;
JSON
{
"hex": "#2f3771",
"rgb": {
"r": 47,
"g": 55,
"b": 113
},
"hsl": {
"h": 232.727,
"s": 41.25,
"l": 31.373
},
"oklch": {
"l": 0.36231,
"c": 0.09933,
"h": 274.4
},
"luminance": 0.04529
}Semantic roles & 50–950 ramp
primary
#2F3771
secondary
#A2995A
accent
#C257D1
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07070E
muted
#7A7A7E