#2B1693#2B1693
#2B1693 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.8% C 0.185 H 277.5°. Best body text is #FFFFFF at 12.81:1 contrast (WCAG AA passes).
Color values
| HEX | #2B1693 |
|---|---|
| RGB | rgb(43, 22, 147) |
| HSL | hsl(250, 74%, 33%) |
| HSV | hsv(250, 85%, 58%) |
| CMYK | cmyk(70.7%, 85%, 0%, 42.4%) |
| CIE-LAB | lab(20.80, 46.34, -63.53) |
| CIE-LCH | lch(20.80, 78.64, 306.11°) |
| OKLab | oklab(33.82% 0.0242 -0.1835) |
| OKLCH | oklch(33.82% 0.185 277.5) |
| XYZ | xyz(6.5479, 3.1934, 27.8694) |
| Luminance | 0.0319 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 2.33
Cobalt Blue
#030AA7
ΔE00 3.43
Royal Blue (survey)
#0504AA
ΔE00 3.83
Indigo (survey)
#380282
ΔE00 4.12
Ultramarine
#2000B1
ΔE00 4.30
Darkblue
#00008B
ΔE00 4.32
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B1693 #7E9316
analogous
#163F93 #2B1693 #691693
triadic
#2B1693 #932B16 #16932B
tetradic
#2B1693 #93163F #7E9316 #169369
square
#2B1693 #93163F #7E9316 #169369
split-complementary
#2B1693 #936916 #3F9316
monochromatic
#0C0629 #1B0E5E #2B1693 #3B1EC8 #5C41E3
Accessibility & contrast
On white
12.81
#2B1693 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.64
#2B1693 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B1693
12.81:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B1693 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B1693 | 1.00 | 12.81 | 1.64 | 12.81 |
| #FFFFFF | 12.81 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.64 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.81 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003796
Deuteranopia (green-blind)
#002D91
Tritanopia (blue-blind)
#003E57
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #2b1693; /* rgb */ color: rgb(43, 22, 147); /* oklch */ color: oklch(33.8% 0.185 277.5);
Tailwind
colors: {
custom: {
50: '#7659b4',
500: '#2b1693',
950: '#000000',
},
}SCSS
$custom: #2b1693; $custom-light: #7659b4; $custom-dark: #000000;
JSON
{
"hex": "#2b1693",
"rgb": {
"r": 43,
"g": 22,
"b": 147
},
"hsl": {
"h": 250.08,
"s": 73.964,
"l": 33.137
},
"oklch": {
"l": 0.33821,
"c": 0.18512,
"h": 277.5
},
"luminance": 0.03194
}Semantic roles & 50–950 ramp
primary
#2B1693
secondary
#ADC342
accent
#F137D1
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980