#2D317E#2D317E
#2D317E is a dark, vivid blue. Relative luminance 0.043; OKLCH L 35.9% C 0.128 H 275.6°. Best body text is #FFFFFF at 11.34:1 contrast (WCAG AA passes).
Color values
| HEX | #2D317E |
|---|---|
| RGB | rgb(45, 49, 126) |
| HSL | hsl(237, 47%, 34%) |
| HSV | hsv(237, 64%, 49%) |
| CMYK | cmyk(64.3%, 61.1%, 0%, 50.6%) |
| CIE-LAB | lab(24.51, 23.85, -44.30) |
| CIE-LCH | lch(24.51, 50.31, 298.30°) |
| OKLab | oklab(35.88% 0.0125 -0.1274) |
| OKLCH | oklch(35.88% 0.128 275.6) |
| XYZ | xyz(5.9452, 4.2604, 20.2437) |
| Luminance | 0.0426 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 5.31
Blueberry
#464196
ΔE00 6.13
Midnight Blue
#191970
ΔE00 6.76
Sapphire (survey)
#2138AB
ΔE00 6.96
Marine
#042E60
ΔE00 7.66
Royal
#0C1793
ΔE00 8.09
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D317E #7E7A2D
analogous
#2D597E #2D317E #512D7E
triadic
#2D317E #7E2D31 #317E2D
tetradic
#2D317E #7E2D59 #7E7A2D #2D7E51
square
#2D317E #7E2D59 #7E7A2D #2D7E51
split-complementary
#2D317E #7E512D #597E2D
monochromatic
#0D0E24 #1D1F51 #2D317E #3D43AB #5F64C6
Accessibility & contrast
On white
11.34
#2D317E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.85
#2D317E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D317E
11.34:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D317E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D317E | 1.00 | 11.34 | 1.85 | 11.34 |
| #FFFFFF | 11.34 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.85 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.34 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003E81
Deuteranopia (green-blind)
#00377C
Tritanopia (blue-blind)
#004452
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #2d317e; /* rgb */ color: rgb(45, 49, 126); /* oklch */ color: oklch(35.9% 0.128 275.6);
Tailwind
colors: {
custom: {
50: '#6f69a4',
500: '#2d317e',
950: '#000000',
},
}SCSS
$custom: #2d317e; $custom-light: #6f69a4; $custom-dark: #000000;
JSON
{
"hex": "#2d317e",
"rgb": {
"r": 45,
"g": 49,
"b": 126
},
"hsl": {
"h": 237.037,
"s": 47.368,
"l": 33.529
},
"oklch": {
"l": 0.3588,
"c": 0.128,
"h": 275.6
},
"luminance": 0.04261
}Semantic roles & 50–950 ramp
primary
#2D317E
secondary
#ACA85A
accent
#D051D7
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F