#2B1776#2B1776
#2B1776 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.6% C 0.149 H 282.8°. Best body text is #FFFFFF at 14.12:1 contrast (WCAG AA passes).
Color values
| HEX | #2B1776 |
|---|---|
| RGB | rgb(43, 23, 118) |
| HSL | hsl(253, 67%, 28%) |
| HSV | hsv(253, 81%, 46%) |
| CMYK | cmyk(63.6%, 80.5%, 0%, 53.7%) |
| CIE-LAB | lab(17.62, 36.93, -50.50) |
| CIE-LCH | lch(17.62, 62.56, 306.18°) |
| OKLab | oklab(30.63% 0.033 -0.1456) |
| OKLCH | oklch(30.63% 0.149 282.8) |
| XYZ | xyz(4.5717, 2.4341, 17.3649) |
| Luminance | 0.0243 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 2.73
Indigo (survey)
#380282
ΔE00 4.12
Dark Royal Blue
#02066F
ΔE00 4.64
Deep Blue
#040273
ΔE00 4.88
Royal
#0C1793
ΔE00 5.01
Navy
#000080
ΔE00 5.19
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B1776 #627617
analogous
#173276 #2B1776 #5B1776
triadic
#2B1776 #762B17 #17762B
tetradic
#2B1776 #761732 #627617 #17765B
square
#2B1776 #761732 #627617 #17765B
split-complementary
#2B1776 #765B17 #327617
monochromatic
#09051A #180D43 #2B1776 #3E21A9 #5431D7
Accessibility & contrast
On white
14.12
#2B1776 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.49
#2B1776 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B1776
14.12:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B1776 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B1776 | 1.00 | 14.12 | 1.49 | 14.12 |
| #FFFFFF | 14.12 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.49 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.12 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002E79
Deuteranopia (green-blind)
#002874
Tritanopia (blue-blind)
#003346
Achromatopsia (no color)
#2B2B2B
Design tokens & code
CSS
--color: #2b1776; /* rgb */ color: rgb(43, 23, 118); /* oklch */ color: oklch(30.6% 0.149 282.8);
Tailwind
colors: {
custom: {
50: '#6f579f',
500: '#2b1776',
950: '#000000',
},
}SCSS
$custom: #2b1776; $custom-light: #6f579f; $custom-dark: #000000;
JSON
{
"hex": "#2b1776",
"rgb": {
"r": 43,
"g": 23,
"b": 118
},
"hsl": {
"h": 252.632,
"s": 67.376,
"l": 27.647
},
"oklch": {
"l": 0.30631,
"c": 0.1493,
"h": 282.8
},
"luminance": 0.02434
}Semantic roles & 50–950 ramp
primary
#2B1776
secondary
#94AB3E
accent
#EA3EC6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030F
muted
#7B787E