#2B1190#2B1190
#2B1190 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 33.0% C 0.185 H 278.4°. Best body text is #FFFFFF at 13.24:1 contrast (WCAG AA passes).
Color values
| HEX | #2B1190 |
|---|---|
| RGB | rgb(43, 17, 144) |
| HSL | hsl(252, 79%, 32%) |
| HSV | hsv(252, 88%, 56%) |
| CMYK | cmyk(70.1%, 88.2%, 0%, 43.5%) |
| CIE-LAB | lab(19.75, 47.49, -63.41) |
| CIE-LCH | lch(19.75, 79.22, 306.83°) |
| OKLab | oklab(33% 0.027 -0.1831) |
| OKLCH | oklch(33% 0.185 278.4) |
| XYZ | xyz(6.2291, 2.9276, 26.6170) |
| Luminance | 0.0293 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 2.62
Indigo (survey)
#380282
ΔE00 3.34
Cobalt Blue
#030AA7
ΔE00 3.54
Darkblue
#00008B
ΔE00 3.66
Royal Blue (survey)
#0504AA
ΔE00 3.87
Ultramarine
#2000B1
ΔE00 4.42
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B1190 #769011
analogous
#113790 #2B1190 #6B1190
triadic
#2B1190 #902B11 #11902B
tetradic
#2B1190 #901137 #769011 #11906B
square
#2B1190 #901137 #769011 #11906B
split-complementary
#2B1190 #906B11 #379011
monochromatic
#0A0423 #1B0B59 #2B1190 #3B17C7 #5934E7
Accessibility & contrast
On white
13.24
#2B1190 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.59
#2B1190 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B1190
13.24:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B1190 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B1190 | 1.00 | 13.24 | 1.59 | 13.24 |
| #FFFFFF | 13.24 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.24 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003493
Deuteranopia (green-blind)
#002B8E
Tritanopia (blue-blind)
#003C54
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #2b1190; /* rgb */ color: rgb(43, 17, 144); /* oklch */ color: oklch(33.0% 0.185 278.4);
Tailwind
colors: {
custom: {
50: '#7556b2',
500: '#2b1190',
950: '#000000',
},
}SCSS
$custom: #2b1190; $custom-light: #7556b2; $custom-dark: #000000;
JSON
{
"hex": "#2b1190",
"rgb": {
"r": 43,
"g": 17,
"b": 144
},
"hsl": {
"h": 252.283,
"s": 78.882,
"l": 31.569
},
"oklch": {
"l": 0.32995,
"c": 0.18508,
"h": 278.4
},
"luminance": 0.02928
}Semantic roles & 50–950 ramp
primary
#2B1190
secondary
#A8C439
accent
#F532CD
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0311
muted
#7C7880