#2E169E#2E169E
#2E169E is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.4% C 0.197 H 277.3°. Best body text is #FFFFFF at 12.18:1 contrast (WCAG AA passes).
Color values
| HEX | #2E169E |
|---|---|
| RGB | rgb(46, 22, 158) |
| HSL | hsl(251, 76%, 35%) |
| HSV | hsv(251, 86%, 62%) |
| CMYK | cmyk(70.9%, 86.1%, 0%, 38%) |
| CIE-LAB | lab(22.38, 49.81, -67.68) |
| CIE-LCH | lch(22.38, 84.03, 306.35°) |
| OKLab | oklab(35.35% 0.0251 -0.1955) |
| OKLCH | oklch(35.35% 0.197 277.3) |
| XYZ | xyz(7.5832, 3.6226, 32.6407) |
| Luminance | 0.0362 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Cobalt Blue
#030AA7
ΔE00 2.83
Indigo Blue
#3A18B1
ΔE00 3.01
Royal
#0C1793
ΔE00 3.12
Ultramarine
#2000B1
ΔE00 3.13
Royal Blue (survey)
#0504AA
ΔE00 3.14
Indigo (survey)
#380282
ΔE00 5.07
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E169E #869E16
analogous
#16429E #2E169E #72169E
triadic
#2E169E #9E2E16 #169E2E
tetradic
#2E169E #9E1642 #869E16 #169E72
square
#2E169E #9E1642 #869E16 #169E72
split-complementary
#2E169E #9E7216 #429E16
monochromatic
#0F0733 #1E0F68 #2E169E #3E1DD4 #6449E6
Accessibility & contrast
On white
12.18
#2E169E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.72
#2E169E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E169E
12.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E169E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E169E | 1.00 | 12.18 | 1.72 | 12.18 |
| #FFFFFF | 12.18 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.72 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.18 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003BA2
Deuteranopia (green-blind)
#00309C
Tritanopia (blue-blind)
#00435D
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #2e169e; /* rgb */ color: rgb(46, 22, 158); /* oklch */ color: oklch(35.4% 0.197 277.3);
Tailwind
colors: {
custom: {
50: '#795abc',
500: '#2e169e',
950: '#000000',
},
}SCSS
$custom: #2e169e; $custom-light: #795abc; $custom-dark: #000000;
JSON
{
"hex": "#2e169e",
"rgb": {
"r": 46,
"g": 22,
"b": 158
},
"hsl": {
"h": 250.588,
"s": 75.556,
"l": 35.294
},
"oklch": {
"l": 0.35351,
"c": 0.19709,
"h": 277.3
},
"luminance": 0.03623
}Semantic roles & 50–950 ramp
primary
#2E169E
secondary
#B1C749
accent
#F236D1
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981