#2D318D#2D318D
#2D318D is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.2% C 0.149 H 274.6°. Best body text is #FFFFFF at 10.85:1 contrast (WCAG AA passes).
Color values
| HEX | #2D318D |
|---|---|
| RGB | rgb(45, 49, 141) |
| HSL | hsl(238, 52%, 36%) |
| HSV | hsv(238, 68%, 55%) |
| CMYK | cmyk(68.1%, 65.2%, 0%, 44.7%) |
| CIE-LAB | lab(25.79, 29.30, -51.59) |
| CIE-LCH | lch(25.79, 59.33, 299.60°) |
| OKLab | oklab(37.22% 0.0119 -0.1488) |
| OKLCH | oklch(37.22% 0.149 274.6) |
| XYZ | xyz(6.9866, 4.6770, 25.7287) |
| Luminance | 0.0468 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.74
Darkslateblue
#483D8B
ΔE00 5.28
Blueberry
#464196
ΔE00 5.40
Royal
#0C1793
ΔE00 6.80
Midnight Blue
#191970
ΔE00 7.29
Indigo Blue
#3A18B1
ΔE00 8.09
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D318D #8D892D
analogous
#2D618D #2D318D #592D8D
triadic
#2D318D #8D2D31 #318D2D
tetradic
#2D318D #8D2D61 #8D892D #2D8D59
square
#2D318D #8D2D61 #8D892D #2D8D59
split-complementary
#2D318D #8D592D #618D2D
monochromatic
#0F1130 #1E215F #2D318D #3C41BB #666BCE
Accessibility & contrast
On white
10.85
#2D318D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.94
#2D318D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D318D
10.85:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D318D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D318D | 1.00 | 10.85 | 1.94 | 10.85 |
| #FFFFFF | 10.85 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.94 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.85 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004190
Deuteranopia (green-blind)
#00398B
Tritanopia (blue-blind)
#00495A
Achromatopsia (no color)
#3D3D3D
Design tokens & code
CSS
--color: #2d318d; /* rgb */ color: rgb(45, 49, 141); /* oklch */ color: oklch(37.2% 0.149 274.6);
Tailwind
colors: {
custom: {
50: '#7369af',
500: '#2d318d',
950: '#000000',
},
}SCSS
$custom: #2d318d; $custom-light: #7369af; $custom-dark: #000000;
JSON
{
"hex": "#2d318d",
"rgb": {
"r": 45,
"g": 49,
"b": 141
},
"hsl": {
"h": 237.5,
"s": 51.613,
"l": 36.471
},
"oklch": {
"l": 0.37221,
"c": 0.14927,
"h": 274.6
},
"luminance": 0.04678
}Semantic roles & 50–950 ramp
primary
#2D318D
secondary
#B5B161
accent
#D54DDB
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090610
muted
#7B7A7F