#2D318E#2D318E
#2D318E is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.3% C 0.151 H 274.5°. Best body text is #FFFFFF at 10.82:1 contrast (WCAG AA passes).
Color values
| HEX | #2D318E |
|---|---|
| RGB | rgb(45, 49, 142) |
| HSL | hsl(238, 52%, 37%) |
| HSV | hsv(238, 68%, 56%) |
| CMYK | cmyk(68.3%, 65.5%, 0%, 44.3%) |
| CIE-LAB | lab(25.88, 29.66, -52.06) |
| CIE-LCH | lch(25.88, 59.92, 299.67°) |
| OKLab | oklab(37.31% 0.0118 -0.1502) |
| OKLCH | oklch(37.31% 0.151 274.5) |
| XYZ | xyz(7.0614, 4.7069, 26.1223) |
| Luminance | 0.0471 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.61
Darkslateblue
#483D8B
ΔE00 5.32
Blueberry
#464196
ΔE00 5.38
Royal
#0C1793
ΔE00 6.75
Midnight Blue
#191970
ΔE00 7.36
Indigo Blue
#3A18B1
ΔE00 7.96
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D318E #8E8A2D
analogous
#2D628E #2D318E #5A2D8E
triadic
#2D318E #8E2D31 #318E2D
tetradic
#2D318E #8E2D62 #8E8A2D #2D8E5A
square
#2D318E #8E2D62 #8E8A2D #2D8E5A
split-complementary
#2D318E #8E5A2D #628E2D
monochromatic
#101131 #1E2160 #2D318E #3C41BC #676BCF
Accessibility & contrast
On white
10.82
#2D318E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.94
#2D318E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D318E
10.82:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D318E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D318E | 1.00 | 10.82 | 1.94 | 10.82 |
| #FFFFFF | 10.82 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.94 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.82 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004291
Deuteranopia (green-blind)
#00398C
Tritanopia (blue-blind)
#00495B
Achromatopsia (no color)
#3D3D3D
Design tokens & code
CSS
--color: #2d318e; /* rgb */ color: rgb(45, 49, 142); /* oklch */ color: oklch(37.3% 0.151 274.5);
Tailwind
colors: {
custom: {
50: '#7369b0',
500: '#2d318e',
950: '#000000',
},
}SCSS
$custom: #2d318e; $custom-light: #7369b0; $custom-dark: #000000;
JSON
{
"hex": "#2d318e",
"rgb": {
"r": 45,
"g": 49,
"b": 142
},
"hsl": {
"h": 237.526,
"s": 51.872,
"l": 36.667
},
"oklch": {
"l": 0.37314,
"c": 0.15065,
"h": 274.5
},
"luminance": 0.04708
}Semantic roles & 50–950 ramp
primary
#2D318E
secondary
#B5B261
accent
#D54CDB
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090611
muted
#7B7A80