#2E107E#2E107E
#2E107E is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.0% C 0.165 H 283.8°. Best body text is #FFFFFF at 14.08:1 contrast (WCAG AA passes).
Color values
| HEX | #2E107E |
|---|---|
| RGB | rgb(46, 16, 126) |
| HSL | hsl(256, 77%, 28%) |
| HSV | hsv(256, 87%, 49%) |
| CMYK | cmyk(63.5%, 87.3%, 0%, 50.6%) |
| CIE-LAB | lab(17.72, 42.93, -55.43) |
| CIE-LCH | lch(17.72, 70.11, 307.76°) |
| OKLab | oklab(31.05% 0.0392 -0.1598) |
| OKLCH | oklch(31.05% 0.165 283.8) |
| XYZ | xyz(5.0767, 2.4574, 19.9414) |
| Luminance | 0.0246 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.29
Navy
#000080
ΔE00 4.19
Darkblue
#00008B
ΔE00 4.25
Midnight Blue
#191970
ΔE00 4.32
Royal
#0C1793
ΔE00 4.38
Deep Blue
#040273
ΔE00 4.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E107E #607E10
analogous
#10297E #2E107E #65107E
triadic
#2E107E #7E2E10 #107E2E
tetradic
#2E107E #7E1029 #607E10 #107E65
square
#2E107E #7E1029 #607E10 #107E65
split-complementary
#2E107E #7E6510 #297E10
monochromatic
#0A031B #1A0948 #2E107E #4217B4 #5925E3
Accessibility & contrast
On white
14.08
#2E107E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.49
#2E107E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E107E
14.08:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E107E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E107E | 1.00 | 14.08 | 1.49 | 14.08 |
| #FFFFFF | 14.08 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.49 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.08 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F81
Deuteranopia (green-blind)
#00287C
Tritanopia (blue-blind)
#003349
Achromatopsia (no color)
#2B2B2B
Design tokens & code
CSS
--color: #2e107e; /* rgb */ color: rgb(46, 16, 126); /* oklch */ color: oklch(31.0% 0.165 283.8);
Tailwind
colors: {
custom: {
50: '#7355a5',
500: '#2e107e',
950: '#000000',
},
}SCSS
$custom: #2e107e; $custom-light: #7355a5; $custom-dark: #000000;
JSON
{
"hex": "#2e107e",
"rgb": {
"r": 46,
"g": 16,
"b": 126
},
"hsl": {
"h": 256.364,
"s": 77.465,
"l": 27.843
},
"oklch": {
"l": 0.31049,
"c": 0.16454,
"h": 283.8
},
"luminance": 0.02458
}Semantic roles & 50–950 ramp
primary
#2E107E
secondary
#92B436
accent
#F434C0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F