#2D317C#2D317C
#2D317C is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.7% C 0.125 H 275.7°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).
Color values
| HEX | #2D317C |
|---|---|
| RGB | rgb(45, 49, 124) |
| HSL | hsl(237, 47%, 33%) |
| HSV | hsv(237, 64%, 49%) |
| CMYK | cmyk(63.7%, 60.5%, 0%, 51.4%) |
| CIE-LAB | lab(24.35, 23.12, -43.30) |
| CIE-LCH | lch(24.35, 49.08, 298.10°) |
| OKLab | oklab(35.71% 0.0125 -0.1245) |
| OKLCH | oklch(35.71% 0.125 275.7) |
| XYZ | xyz(5.8174, 4.2093, 19.5708) |
| Luminance | 0.0421 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 5.39
Blueberry
#464196
ΔE00 6.29
Midnight Blue
#191970
ΔE00 6.77
Sapphire (survey)
#2138AB
ΔE00 7.29
Marine
#042E60
ΔE00 7.47
Royal
#0C1793
ΔE00 8.32
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D317C #7C782D
analogous
#2D587C #2D317C #502D7C
triadic
#2D317C #7C2D31 #317C2D
tetradic
#2D317C #7C2D58 #7C782D #2D7C50
square
#2D317C #7C2D58 #7C782D #2D7C50
split-complementary
#2D317C #7C502D #587C2D
monochromatic
#0C0E22 #1D1F4F #2D317C #3D43A9 #5F64C5
Accessibility & contrast
On white
11.40
#2D317C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.84
#2D317C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D317C
11.40:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D317C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D317C | 1.00 | 11.40 | 1.84 | 11.40 |
| #FFFFFF | 11.40 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.84 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.40 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003D7F
Deuteranopia (green-blind)
#00377A
Tritanopia (blue-blind)
#004351
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #2d317c; /* rgb */ color: rgb(45, 49, 124); /* oklch */ color: oklch(35.7% 0.125 275.7);
Tailwind
colors: {
custom: {
50: '#6f69a3',
500: '#2d317c',
950: '#000000',
},
}SCSS
$custom: #2d317c; $custom-light: #6f69a3; $custom-dark: #000000;
JSON
{
"hex": "#2d317c",
"rgb": {
"r": 45,
"g": 49,
"b": 124
},
"hsl": {
"h": 236.962,
"s": 46.746,
"l": 33.137
},
"oklch": {
"l": 0.35709,
"c": 0.12509,
"h": 275.7
},
"luminance": 0.0421
}Semantic roles & 50–950 ramp
primary
#2D317C
secondary
#ABA75A
accent
#D051D6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F