#2E138E#2E138E
#2E138E is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.2% C 0.181 H 280.1°. Best body text is #FFFFFF at 13.13:1 contrast (WCAG AA passes).
Color values
| HEX | #2E138E |
|---|---|
| RGB | rgb(46, 19, 142) |
| HSL | hsl(253, 76%, 32%) |
| HSV | hsv(253, 87%, 56%) |
| CMYK | cmyk(67.6%, 86.6%, 0%, 44.3%) |
| CIE-LAB | lab(20.04, 46.37, -61.68) |
| CIE-LCH | lch(20.04, 77.16, 306.93°) |
| OKLab | oklab(33.19% 0.0318 -0.178) |
| OKLCH | oklch(33.19% 0.181 280.1) |
| XYZ | xyz(6.2405, 2.9991, 25.8360) |
| Luminance | 0.0300 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 2.87
Indigo (survey)
#380282
ΔE00 3.19
Cobalt Blue
#030AA7
ΔE00 4.00
Darkblue
#00008B
ΔE00 4.04
Royal Blue (survey)
#0504AA
ΔE00 4.34
Ultramarine
#2000B1
ΔE00 4.80
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E138E #738E13
analogous
#13358E #2E138E #6C138E
triadic
#2E138E #8E2E13 #138E2E
tetradic
#2E138E #8E1335 #738E13 #138E6C
square
#2E138E #8E1335 #738E13 #138E6C
split-complementary
#2E138E #8E6C13 #358E13
monochromatic
#0B0522 #1D0C58 #2E138E #3F1AC4 #5D37E4
Accessibility & contrast
On white
13.13
#2E138E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.60
#2E138E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E138E
13.13:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E138E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E138E | 1.00 | 13.13 | 1.60 | 13.13 |
| #FFFFFF | 13.13 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.60 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.13 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003591
Deuteranopia (green-blind)
#002C8C
Tritanopia (blue-blind)
#003B53
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #2e138e; /* rgb */ color: rgb(46, 19, 142); /* oklch */ color: oklch(33.2% 0.181 280.1);
Tailwind
colors: {
custom: {
50: '#7657b0',
500: '#2e138e',
950: '#000000',
},
}SCSS
$custom: #2e138e; $custom-light: #7657b0; $custom-dark: #000000;
JSON
{
"hex": "#2e138e",
"rgb": {
"r": 46,
"g": 19,
"b": 142
},
"hsl": {
"h": 253.171,
"s": 76.398,
"l": 31.569
},
"oklch": {
"l": 0.3319,
"c": 0.18084,
"h": 280.1
},
"luminance": 0.03
}Semantic roles & 50–950 ramp
primary
#2E138E
secondary
#A4C23B
accent
#F335C9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0311
muted
#7C7880