#2E217E#2E217E
#2E217E is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.1% C 0.148 H 281.0°. Best body text is #FFFFFF at 12.84:1 contrast (WCAG AA passes).
Color values
| HEX | #2E217E |
|---|---|
| RGB | rgb(46, 33, 126) |
| HSL | hsl(248, 58%, 31%) |
| HSV | hsv(248, 74%, 49%) |
| CMYK | cmyk(63.5%, 73.8%, 0%, 50.6%) |
| CIE-LAB | lab(20.73, 34.32, -50.48) |
| CIE-LCH | lch(20.73, 61.04, 304.21°) |
| OKLab | oklab(33.15% 0.0282 -0.1455) |
| OKLCH | oklch(33.15% 0.148 281) |
| XYZ | xyz(5.4353, 3.1745, 20.0609) |
| Luminance | 0.0318 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.50
Royal
#0C1793
ΔE00 4.70
Indigo (survey)
#380282
ΔE00 5.64
Dark Royal Blue
#02066F
ΔE00 6.65
Darkblue
#00008B
ΔE00 6.80
Navy
#000080
ΔE00 6.87
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E217E #717E21
analogous
#21427E #2E217E #5C217E
triadic
#2E217E #7E2E21 #217E2E
tetradic
#2E217E #7E2142 #717E21 #217E5C
square
#2E217E #7E2142 #717E21 #217E5C
split-complementary
#2E217E #7E5C21 #427E21
monochromatic
#0B081D #1C144E #2E217E #402EAE #5D4AD0
Accessibility & contrast
On white
12.84
#2E217E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.64
#2E217E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E217E
12.84:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E217E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E217E | 1.00 | 12.84 | 1.64 | 12.84 |
| #FFFFFF | 12.84 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.64 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.84 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003581
Deuteranopia (green-blind)
#002E7C
Tritanopia (blue-blind)
#003A4D
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #2e217e; /* rgb */ color: rgb(46, 33, 126); /* oklch */ color: oklch(33.1% 0.148 281.0);
Tailwind
colors: {
custom: {
50: '#715ea4',
500: '#2e217e',
950: '#000000',
},
}SCSS
$custom: #2e217e; $custom-light: #715ea4; $custom-dark: #000000;
JSON
{
"hex": "#2e217e",
"rgb": {
"r": 46,
"g": 33,
"b": 126
},
"hsl": {
"h": 248.387,
"s": 58.491,
"l": 31.176
},
"oklch": {
"l": 0.33149,
"c": 0.14824,
"h": 281
},
"luminance": 0.03175
}Semantic roles & 50–950 ramp
primary
#2E217E
secondary
#A2B14A
accent
#E246CC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F