#2F317F#2F317F
#2F317F is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.1% C 0.129 H 276.7°. Best body text is #FFFFFF at 11.25:1 contrast (WCAG AA passes).
Color values
| HEX | #2F317F |
|---|---|
| RGB | rgb(47, 49, 127) |
| HSL | hsl(239, 46%, 34%) |
| HSV | hsv(239, 63%, 50%) |
| CMYK | cmyk(63%, 61.4%, 0%, 50.2%) |
| CIE-LAB | lab(24.74, 24.57, -44.55) |
| CIE-LCH | lch(24.74, 50.88, 298.88°) |
| OKLab | oklab(36.11% 0.015 -0.1281) |
| OKLCH | oklch(36.11% 0.129 276.7) |
| XYZ | xyz(6.1001, 4.3328, 20.5894) |
| Luminance | 0.0433 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 5.03
Blueberry
#464196
ΔE00 5.91
Midnight Blue
#191970
ΔE00 6.77
Sapphire (survey)
#2138AB
ΔE00 6.89
Royal
#0C1793
ΔE00 7.99
Marine
#042E60
ΔE00 8.04
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F317F #7F7D2F
analogous
#2F597F #2F317F #552F7F
triadic
#2F317F #7F2F31 #317F2F
tetradic
#2F317F #7F2F59 #7F7D2F #2F7F55
square
#2F317F #7F2F59 #7F7D2F #2F7F55
split-complementary
#2F317F #7F552F #597F2F
monochromatic
#0E0F26 #1E2052 #2F317F #4042AC #6366C5
Accessibility & contrast
On white
11.25
#2F317F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.87
#2F317F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F317F
11.25:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F317F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F317F | 1.00 | 11.25 | 1.87 | 11.25 |
| #FFFFFF | 11.25 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.87 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.25 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003E82
Deuteranopia (green-blind)
#00377D
Tritanopia (blue-blind)
#004453
Achromatopsia (no color)
#3B3B3B
Design tokens & code
CSS
--color: #2f317f; /* rgb */ color: rgb(47, 49, 127); /* oklch */ color: oklch(36.1% 0.129 276.7);
Tailwind
colors: {
custom: {
50: '#7169a5',
500: '#2f317f',
950: '#000000',
},
}SCSS
$custom: #2f317f; $custom-light: #7169a5; $custom-dark: #000000;
JSON
{
"hex": "#2f317f",
"rgb": {
"r": 47,
"g": 49,
"b": 127
},
"hsl": {
"h": 238.5,
"s": 45.977,
"l": 34.118
},
"oklch": {
"l": 0.36113,
"c": 0.12896,
"h": 276.7
},
"luminance": 0.04333
}Semantic roles & 50–950 ramp
primary
#2F317F
secondary
#ACAA5E
accent
#D252D6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F