#2F318B#2F318B
#2F318B is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.2% C 0.146 H 275.7°. Best body text is #FFFFFF at 10.86:1 contrast (WCAG AA passes).
Color values
| HEX | #2F318B |
|---|---|
| RGB | rgb(47, 49, 139) |
| HSL | hsl(239, 49%, 36%) |
| HSV | hsv(239, 66%, 55%) |
| CMYK | cmyk(66.2%, 64.7%, 0%, 45.5%) |
| CIE-LAB | lab(25.76, 28.89, -50.40) |
| CIE-LCH | lch(25.76, 58.09, 299.82°) |
| OKLab | oklab(37.18% 0.0145 -0.1453) |
| OKLCH | oklch(37.18% 0.146 275.7) |
| XYZ | xyz(6.9293, 4.6645, 24.9563) |
| Luminance | 0.0466 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 5.02
Sapphire (survey)
#2138AB
ΔE00 5.10
Blueberry
#464196
ΔE00 5.30
Royal
#0C1793
ΔE00 6.94
Midnight Blue
#191970
ΔE00 7.18
Indigo Blue
#3A18B1
ΔE00 8.23
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F318B #8B892F
analogous
#2F5F8B #2F318B #5B2F8B
triadic
#2F318B #8B2F31 #318B2F
tetradic
#2F318B #8B2F5F #8B892F #2F8B5B
square
#2F318B #8B2F5F #8B892F #2F8B5B
split-complementary
#2F318B #8B5B2F #5F8B2F
monochromatic
#101130 #20215D #2F318B #3E41B9 #686BCC
Accessibility & contrast
On white
10.86
#2F318B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.93
#2F318B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F318B
10.86:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F318B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F318B | 1.00 | 10.86 | 1.93 | 10.86 |
| #FFFFFF | 10.86 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.93 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.86 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00418E
Deuteranopia (green-blind)
#003989
Tritanopia (blue-blind)
#004859
Achromatopsia (no color)
#3D3D3D
Design tokens & code
CSS
--color: #2f318b; /* rgb */ color: rgb(47, 49, 139); /* oklch */ color: oklch(37.2% 0.146 275.7);
Tailwind
colors: {
custom: {
50: '#7369ae',
500: '#2f318b',
950: '#000000',
},
}SCSS
$custom: #2f318b; $custom-light: #7369ae; $custom-dark: #000000;
JSON
{
"hex": "#2f318b",
"rgb": {
"r": 47,
"g": 49,
"b": 139
},
"hsl": {
"h": 238.696,
"s": 49.462,
"l": 36.471
},
"oklch": {
"l": 0.37176,
"c": 0.14599,
"h": 275.7
},
"luminance": 0.04665
}Semantic roles & 50–950 ramp
primary
#2F318B
secondary
#B3B163
accent
#D64FD9
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F