#2E1180#2E1180
#2E1180 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.4% C 0.166 H 283.2°. Best body text is #FFFFFF at 13.93:1 contrast (WCAG AA passes).
Color values
| HEX | #2E1180 |
|---|---|
| RGB | rgb(46, 17, 128) |
| HSL | hsl(256, 77%, 28%) |
| HSV | hsv(256, 87%, 50%) |
| CMYK | cmyk(64.1%, 86.7%, 0%, 49.8%) |
| CIE-LAB | lab(18.10, 43.11, -56.09) |
| CIE-LCH | lch(18.10, 70.74, 307.55°) |
| OKLab | oklab(31.37% 0.0379 -0.1617) |
| OKLCH | oklch(31.37% 0.166 283.2) |
| XYZ | xyz(5.2222, 2.5399, 20.6329) |
| Luminance | 0.0254 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.36
Royal
#0C1793
ΔE00 4.10
Darkblue
#00008B
ΔE00 4.19
Navy
#000080
ΔE00 4.24
Midnight Blue
#191970
ΔE00 4.37
Deep Blue
#040273
ΔE00 4.64
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E1180 #638011
analogous
#112B80 #2E1180 #651180
triadic
#2E1180 #802E11 #11802E
tetradic
#2E1180 #80112B #638011 #118065
square
#2E1180 #80112B #638011 #118065
split-complementary
#2E1180 #806511 #2B8011
monochromatic
#0A041B #1B0A4A #2E1180 #4118B6 #5929E3
Accessibility & contrast
On white
13.93
#2E1180 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.51
#2E1180 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E1180
13.93:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E1180 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E1180 | 1.00 | 13.93 | 1.51 | 13.93 |
| #FFFFFF | 13.93 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.51 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.93 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F83
Deuteranopia (green-blind)
#00287E
Tritanopia (blue-blind)
#00344B
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #2e1180; /* rgb */ color: rgb(46, 17, 128); /* oklch */ color: oklch(31.4% 0.166 283.2);
Tailwind
colors: {
custom: {
50: '#7355a6',
500: '#2e1180',
950: '#000000',
},
}SCSS
$custom: #2e1180; $custom-light: #7355a6; $custom-dark: #000000;
JSON
{
"hex": "#2e1180",
"rgb": {
"r": 46,
"g": 17,
"b": 128
},
"hsl": {
"h": 255.676,
"s": 76.552,
"l": 28.431
},
"oklch": {
"l": 0.31374,
"c": 0.16611,
"h": 283.2
},
"luminance": 0.0254
}Semantic roles & 50–950 ramp
primary
#2E1180
secondary
#95B637
accent
#F335C1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F