#2F3F8E#2F3F8E
#2F3F8E is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.2% C 0.132 H 270.7°. Best body text is #FFFFFF at 9.45:1 contrast (WCAG AA passes).
Color values
| HEX | #2F3F8E |
|---|---|
| RGB | rgb(47, 63, 142) |
| HSL | hsl(230, 50%, 37%) |
| HSV | hsv(230, 67%, 56%) |
| CMYK | cmyk(66.9%, 55.6%, 0%, 44.3%) |
| CIE-LAB | lab(29.69, 20.62, -45.86) |
| CIE-LCH | lch(29.69, 50.28, 294.21°) |
| OKLab | oklab(40.17% 0.0016 -0.1318) |
| OKLCH | oklch(40.17% 0.132 270.7) |
| XYZ | xyz(7.8306, 6.1116, 26.3529) |
| Luminance | 0.0611 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 4.19
Cobalt (survey)
#1E488F
ΔE00 4.84
Sapphire (survey)
#2138AB
ΔE00 5.14
Darkslateblue
#483D8B
ΔE00 5.19
Cobalt
#0047AB
ΔE00 5.77
Darkish Blue
#014182
ΔE00 6.10
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F3F8E #8E7E2F
analogous
#2F6F8E #2F3F8E #4F2F8E
triadic
#2F3F8E #8E2F3F #3F8E2F
tetradic
#2F3F8E #8E2F6F #8E7E2F #2F8E4F
square
#2F3F8E #8E2F6F #8E7E2F #2F8E4F
split-complementary
#2F3F8E #8E4F2F #6F8E2F
monochromatic
#111632 #202B60 #2F3F8E #3E53BC #6A7BCE
Accessibility & contrast
On white
9.45
#2F3F8E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.22
#2F3F8E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F3F8E
9.45:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F3F8E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F3F8E | 1.00 | 9.45 | 2.22 | 9.45 |
| #FFFFFF | 9.45 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.22 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.45 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#044A91
Deuteranopia (green-blind)
#00428C
Tritanopia (blue-blind)
#005260
Achromatopsia (no color)
#464646
Design tokens & code
CSS
--color: #2f3f8e; /* rgb */ color: rgb(47, 63, 142); /* oklch */ color: oklch(40.2% 0.132 270.7);
Tailwind
colors: {
custom: {
50: '#7373b0',
500: '#2f3f8e',
950: '#000000',
},
}SCSS
$custom: #2f3f8e; $custom-light: #7373b0; $custom-dark: #000000;
JSON
{
"hex": "#2f3f8e",
"rgb": {
"r": 47,
"g": 63,
"b": 142
},
"hsl": {
"h": 229.895,
"s": 50.265,
"l": 37.059
},
"oklch": {
"l": 0.40174,
"c": 0.13178,
"h": 270.7
},
"luminance": 0.06112
}Semantic roles & 50–950 ramp
primary
#2F3F8E
secondary
#B5A764
accent
#C24EDA
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#090810
muted
#7B7B7F