#2E2971#2E2971
#2E2971 is a dark, moderate blue. Relative luminance 0.034; OKLCH L 33.3% C 0.120 H 280.8°. Best body text is #FFFFFF at 12.56:1 contrast (WCAG AA passes).
Color values
| HEX | #2E2971 |
|---|---|
| RGB | rgb(46, 41, 113) |
| HSL | hsl(244, 47%, 30%) |
| HSV | hsv(244, 64%, 44%) |
| CMYK | cmyk(59.3%, 63.7%, 0%, 55.7%) |
| CIE-LAB | lab(21.43, 24.76, -41.03) |
| CIE-LCH | lch(21.43, 47.92, 301.11°) |
| OKLab | oklab(33.28% 0.0224 -0.1178) |
| OKLCH | oklch(33.28% 0.12 280.8) |
| XYZ | xyz(4.8994, 3.3587, 16.0097) |
| Luminance | 0.0336 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 4.87
Darkslateblue
#483D8B
ΔE00 6.97
Royal
#0C1793
ΔE00 7.97
Marine
#042E60
ΔE00 8.39
Blueberry
#464196
ΔE00 8.48
Dark Indigo
#1F0954
ΔE00 8.61
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E2971 #6C7129
analogous
#294871 #2E2971 #522971
triadic
#2E2971 #712E29 #29712E
tetradic
#2E2971 #712948 #6C7129 #297152
square
#2E2971 #712948 #6C7129 #297152
split-complementary
#2E2971 #715229 #487129
monochromatic
#090817 #1C1944 #2E2971 #40399E #5B54C1
Accessibility & contrast
On white
12.56
#2E2971 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.67
#2E2971 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E2971
12.56:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E2971 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E2971 | 1.00 | 12.56 | 1.67 | 12.56 |
| #FFFFFF | 12.56 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.67 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.56 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003673
Deuteranopia (green-blind)
#003170
Tritanopia (blue-blind)
#0A3A48
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #2e2971; /* rgb */ color: rgb(46, 41, 113); /* oklch */ color: oklch(33.3% 0.120 280.8);
Tailwind
colors: {
custom: {
50: '#6e639a',
500: '#2e2971',
950: '#000000',
},
}SCSS
$custom: #2e2971; $custom-light: #6e639a; $custom-dark: #000000;
JSON
{
"hex": "#2e2971",
"rgb": {
"r": 46,
"g": 41,
"b": 113
},
"hsl": {
"h": 244.167,
"s": 46.753,
"l": 30.196
},
"oklch": {
"l": 0.33285,
"c": 0.11994,
"h": 280.8
},
"luminance": 0.03359
}Semantic roles & 50–950 ramp
primary
#2E2971
secondary
#9EA353
accent
#D651CD
background
#F6F5F9
surface
#ECEAF2
border
#C7C6CC
text
#08050E
muted
#7B797E