#2F318E#2F318E
#2F318E is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.5% C 0.150 H 275.4°. Best body text is #FFFFFF at 10.76:1 contrast (WCAG AA passes).
Color values
| HEX | #2F318E |
|---|---|
| RGB | rgb(47, 49, 142) |
| HSL | hsl(239, 50%, 37%) |
| HSV | hsv(239, 67%, 56%) |
| CMYK | cmyk(66.9%, 65.5%, 0%, 44.3%) |
| CIE-LAB | lab(26.02, 29.96, -51.83) |
| CIE-LCH | lch(26.02, 59.87, 300.03°) |
| OKLab | oklab(37.45% 0.0143 -0.1495) |
| OKLCH | oklch(37.45% 0.15 275.4) |
| XYZ | xyz(7.1515, 4.7533, 26.1266) |
| Luminance | 0.0475 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.70
Darkslateblue
#483D8B
ΔE00 5.12
Blueberry
#464196
ΔE00 5.25
Royal
#0C1793
ΔE00 6.77
Midnight Blue
#191970
ΔE00 7.37
Indigo Blue
#3A18B1
ΔE00 7.85
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F318E #8E8C2F
analogous
#2F618E #2F318E #5D2F8E
triadic
#2F318E #8E2F31 #318E2F
tetradic
#2F318E #8E2F61 #8E8C2F #2F8E5D
square
#2F318E #8E2F61 #8E8C2F #2F8E5D
split-complementary
#2F318E #8E5D2F #618E2F
monochromatic
#111132 #202160 #2F318E #3E41BC #6A6CCE
Accessibility & contrast
On white
10.76
#2F318E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.95
#2F318E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F318E
10.76:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F318E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F318E | 1.00 | 10.76 | 1.95 | 10.76 |
| #FFFFFF | 10.76 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.95 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.76 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004291
Deuteranopia (green-blind)
#00398C
Tritanopia (blue-blind)
#00495B
Achromatopsia (no color)
#3E3E3E
Design tokens & code
CSS
--color: #2f318e; /* rgb */ color: rgb(47, 49, 142); /* oklch */ color: oklch(37.5% 0.150 275.4);
Tailwind
colors: {
custom: {
50: '#7469b0',
500: '#2f318e',
950: '#000000',
},
}SCSS
$custom: #2f318e; $custom-light: #7469b0; $custom-dark: #000000;
JSON
{
"hex": "#2f318e",
"rgb": {
"r": 47,
"g": 49,
"b": 142
},
"hsl": {
"h": 238.737,
"s": 50.265,
"l": 37.059
},
"oklch": {
"l": 0.3745,
"c": 0.15014,
"h": 275.4
},
"luminance": 0.04754
}Semantic roles & 50–950 ramp
primary
#2F318E
secondary
#B5B364
accent
#D74EDA
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090611
muted
#7B7A80