#2F317E#2F317E
#2F317E is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.0% C 0.128 H 276.8°. Best body text is #FFFFFF at 11.28:1 contrast (WCAG AA passes).
Color values
| HEX | #2F317E |
|---|---|
| RGB | rgb(47, 49, 126) |
| HSL | hsl(238, 46%, 34%) |
| HSV | hsv(238, 63%, 49%) |
| CMYK | cmyk(62.7%, 61.1%, 0%, 50.6%) |
| CIE-LAB | lab(24.66, 24.21, -44.05) |
| CIE-LCH | lch(24.66, 50.27, 298.79°) |
| OKLab | oklab(36.03% 0.015 -0.1266) |
| OKLCH | oklch(36.03% 0.128 276.8) |
| XYZ | xyz(6.0353, 4.3069, 20.2479) |
| Luminance | 0.0431 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 5.07
Blueberry
#464196
ΔE00 5.99
Midnight Blue
#191970
ΔE00 6.76
Sapphire (survey)
#2138AB
ΔE00 7.05
Marine
#042E60
ΔE00 7.95
Royal
#0C1793
ΔE00 8.11
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F317E #7E7C2F
analogous
#2F597E #2F317E #552F7E
triadic
#2F317E #7E2F31 #317E2F
tetradic
#2F317E #7E2F59 #7E7C2F #2F7E55
square
#2F317E #7E2F59 #7E7C2F #2F7E55
split-complementary
#2F317E #7E552F #597E2F
monochromatic
#0E0E25 #1E2051 #2F317E #4042AB #6365C5
Accessibility & contrast
On white
11.28
#2F317E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.86
#2F317E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F317E
11.28:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F317E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F317E | 1.00 | 11.28 | 1.86 | 11.28 |
| #FFFFFF | 11.28 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.86 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.28 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003E81
Deuteranopia (green-blind)
#00377C
Tritanopia (blue-blind)
#004452
Achromatopsia (no color)
#3B3B3B
Design tokens & code
CSS
--color: #2f317e; /* rgb */ color: rgb(47, 49, 126); /* oklch */ color: oklch(36.0% 0.128 276.8);
Tailwind
colors: {
custom: {
50: '#7069a4',
500: '#2f317e',
950: '#000000',
},
}SCSS
$custom: #2f317e; $custom-light: #7069a4; $custom-dark: #000000;
JSON
{
"hex": "#2f317e",
"rgb": {
"r": 47,
"g": 49,
"b": 126
},
"hsl": {
"h": 238.481,
"s": 45.665,
"l": 33.922
},
"oklch": {
"l": 0.36027,
"c": 0.1275,
"h": 276.8
},
"luminance": 0.04307
}Semantic roles & 50–950 ramp
primary
#2F317E
secondary
#ACAA5D
accent
#D252D5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F