#2F317D#2F317D
#2F317D is a dark, vivid blue. Relative luminance 0.043; OKLCH L 35.9% C 0.126 H 276.9°. Best body text is #FFFFFF at 11.31:1 contrast (WCAG AA passes).
Color values
| HEX | #2F317D |
|---|---|
| RGB | rgb(47, 49, 125) |
| HSL | hsl(238, 45%, 34%) |
| HSV | hsv(238, 62%, 49%) |
| CMYK | cmyk(62.4%, 60.8%, 0%, 51%) |
| CIE-LAB | lab(24.58, 23.85, -43.55) |
| CIE-LCH | lch(24.58, 49.66, 298.71°) |
| OKLab | oklab(35.94% 0.015 -0.1251) |
| OKLCH | oklch(35.94% 0.126 276.9) |
| XYZ | xyz(5.9711, 4.2812, 19.9098) |
| Luminance | 0.0428 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 5.11
Blueberry
#464196
ΔE00 6.08
Midnight Blue
#191970
ΔE00 6.77
Sapphire (survey)
#2138AB
ΔE00 7.21
Marine
#042E60
ΔE00 7.86
Royal
#0C1793
ΔE00 8.22
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2F317D #7D7B2F
analogous
#2F587D #2F317D #542F7D
triadic
#2F317D #7D2F31 #317D2F
tetradic
#2F317D #7D2F58 #7D7B2F #2F7D54
square
#2F317D #7D2F58 #7D7B2F #2F7D54
split-complementary
#2F317D #7D542F #587D2F
monochromatic
#0E0E24 #1E2051 #2F317D #4042A9 #6265C4
Accessibility & contrast
On white
11.31
#2F317D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.86
#2F317D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2F317D
11.31:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2F317D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2F317D | 1.00 | 11.31 | 1.86 | 11.31 |
| #FFFFFF | 11.31 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.86 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.31 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003E80
Deuteranopia (green-blind)
#00377B
Tritanopia (blue-blind)
#004352
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #2f317d; /* rgb */ color: rgb(47, 49, 125); /* oklch */ color: oklch(35.9% 0.126 276.9);
Tailwind
colors: {
custom: {
50: '#7069a3',
500: '#2f317d',
950: '#000000',
},
}SCSS
$custom: #2f317d; $custom-light: #7069a3; $custom-dark: #000000;
JSON
{
"hex": "#2f317d",
"rgb": {
"r": 47,
"g": 49,
"b": 125
},
"hsl": {
"h": 238.462,
"s": 45.349,
"l": 33.725
},
"oklch": {
"l": 0.35942,
"c": 0.12604,
"h": 276.9
},
"luminance": 0.04282
}Semantic roles & 50–950 ramp
primary
#2F317D
secondary
#ABA95D
accent
#D253D5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F