#2E217D#2E217D
#2E217D is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.0% C 0.147 H 281.1°. Best body text is #FFFFFF at 12.89:1 contrast (WCAG AA passes).
Color values
| HEX | #2E217D |
|---|---|
| RGB | rgb(46, 33, 125) |
| HSL | hsl(248, 58%, 31%) |
| HSV | hsv(248, 74%, 49%) |
| CMYK | cmyk(63.2%, 73.6%, 0%, 51%) |
| CIE-LAB | lab(20.63, 33.98, -50.01) |
| CIE-LCH | lch(20.63, 60.46, 304.20°) |
| OKLab | oklab(33.05% 0.0284 -0.1442) |
| OKLCH | oklch(33.05% 0.147 281.1) |
| XYZ | xyz(5.3711, 3.1488, 19.7228) |
| Luminance | 0.0315 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.42
Royal
#0C1793
ΔE00 4.83
Indigo (survey)
#380282
ΔE00 5.69
Dark Royal Blue
#02066F
ΔE00 6.63
Darkblue
#00008B
ΔE00 6.88
Navy
#000080
ΔE00 6.91
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E217D #707D21
analogous
#21427D #2E217D #5C217D
triadic
#2E217D #7D2E21 #217D2E
tetradic
#2E217D #7D2142 #707D21 #217D5C
square
#2E217D #7D2142 #707D21 #217D5C
split-complementary
#2E217D #7D5C21 #427D21
monochromatic
#0A071C #1C144D #2E217D #402EAD #5C49CF
Accessibility & contrast
On white
12.89
#2E217D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.63
#2E217D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E217D
12.89:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E217D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E217D | 1.00 | 12.89 | 1.63 | 12.89 |
| #FFFFFF | 12.89 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.63 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.89 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003580
Deuteranopia (green-blind)
#002E7B
Tritanopia (blue-blind)
#003A4C
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #2e217d; /* rgb */ color: rgb(46, 33, 125); /* oklch */ color: oklch(33.0% 0.147 281.1);
Tailwind
colors: {
custom: {
50: '#715ea4',
500: '#2e217d',
950: '#000000',
},
}SCSS
$custom: #2e217d; $custom-light: #715ea4; $custom-dark: #000000;
JSON
{
"hex": "#2e217d",
"rgb": {
"r": 46,
"g": 33,
"b": 125
},
"hsl": {
"h": 248.478,
"s": 58.228,
"l": 30.98
},
"oklch": {
"l": 0.33048,
"c": 0.14693,
"h": 281.1
},
"luminance": 0.03149
}Semantic roles & 50–950 ramp
primary
#2E217D
secondary
#A1B04A
accent
#E146CC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F