#2B1477#2B1477
#2B1477 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.4% C 0.153 H 283.0°. Best body text is #FFFFFF at 14.29:1 contrast (WCAG AA passes).
Color values
| HEX | #2B1477 |
|---|---|
| RGB | rgb(43, 20, 119) |
| HSL | hsl(254, 71%, 27%) |
| HSV | hsv(254, 83%, 47%) |
| CMYK | cmyk(63.9%, 83.2%, 0%, 53.3%) |
| CIE-LAB | lab(17.20, 38.76, -51.82) |
| CIE-LCH | lch(17.20, 64.71, 306.79°) |
| OKLab | oklab(30.38% 0.0346 -0.1494) |
| OKLCH | oklch(30.38% 0.153 283) |
| XYZ | xyz(4.5752, 2.3455, 17.6608) |
| Luminance | 0.0235 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.13
Indigo (survey)
#380282
ΔE00 3.53
Dark Royal Blue
#02066F
ΔE00 4.31
Deep Blue
#040273
ΔE00 4.44
Navy
#000080
ΔE00 4.67
Royal
#0C1793
ΔE00 4.89
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B1477 #607714
analogous
#142F77 #2B1477 #5C1477
triadic
#2B1477 #772B14 #14772B
tetradic
#2B1477 #77142F #607714 #14775C
square
#2B1477 #77142F #607714 #14775C
split-complementary
#2B1477 #775C14 #2F7714
monochromatic
#09041A #180B43 #2B1477 #3E1DAB #532ADB
Accessibility & contrast
On white
14.29
#2B1477 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.47
#2B1477 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B1477
14.29:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B1477 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B1477 | 1.00 | 14.29 | 1.47 | 14.29 |
| #FFFFFF | 14.29 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.47 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.29 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002D7A
Deuteranopia (green-blind)
#002775
Tritanopia (blue-blind)
#003246
Achromatopsia (no color)
#2A2A2A
Design tokens & code
CSS
--color: #2b1477; /* rgb */ color: rgb(43, 20, 119); /* oklch */ color: oklch(30.4% 0.153 283.0);
Tailwind
colors: {
custom: {
50: '#70569f',
500: '#2b1477',
950: '#000000',
},
}SCSS
$custom: #2b1477; $custom-light: #70569f; $custom-dark: #000000;
JSON
{
"hex": "#2b1477",
"rgb": {
"r": 43,
"g": 20,
"b": 119
},
"hsl": {
"h": 253.939,
"s": 71.223,
"l": 27.255
},
"oklch": {
"l": 0.30376,
"c": 0.15339,
"h": 283
},
"luminance": 0.02346
}Semantic roles & 50–950 ramp
primary
#2B1477
secondary
#92AD3A
accent
#EE3AC4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030F
muted
#7B787E