#2B1180#2B1180
#2B1180 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.1% C 0.167 H 281.4°. Best body text is #FFFFFF at 14.05:1 contrast (WCAG AA passes).
Color values
| HEX | #2B1180 |
|---|---|
| RGB | rgb(43, 17, 128) |
| HSL | hsl(254, 77%, 28%) |
| HSV | hsv(254, 87%, 50%) |
| CMYK | cmyk(66.4%, 86.7%, 0%, 49.8%) |
| CIE-LAB | lab(17.79, 42.82, -56.60) |
| CIE-LCH | lch(17.79, 70.97, 307.11°) |
| OKLab | oklab(31.09% 0.0329 -0.1633) |
| OKLCH | oklch(31.09% 0.167 281.4) |
| XYZ | xyz(5.0918, 2.4726, 20.6268) |
| Luminance | 0.0247 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.63
Royal
#0C1793
ΔE00 3.83
Darkblue
#00008B
ΔE00 3.92
Navy
#000080
ΔE00 3.95
Midnight Blue
#191970
ΔE00 4.13
Deep Blue
#040273
ΔE00 4.36
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B1180 #668011
analogous
#112E80 #2B1180 #621180
triadic
#2B1180 #802B11 #11802B
tetradic
#2B1180 #80112E #668011 #118062
square
#2B1180 #80112E #668011 #118062
split-complementary
#2B1180 #806211 #2E8011
monochromatic
#09041B #190A4A #2B1180 #3D18B6 #5429E3
Accessibility & contrast
On white
14.05
#2B1180 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.49
#2B1180 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B1180
14.05:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B1180 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B1180 | 1.00 | 14.05 | 1.49 | 14.05 |
| #FFFFFF | 14.05 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.49 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.05 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F83
Deuteranopia (green-blind)
#00287E
Tritanopia (blue-blind)
#00354B
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #2b1180; /* rgb */ color: rgb(43, 17, 128); /* oklch */ color: oklch(31.1% 0.167 281.4);
Tailwind
colors: {
custom: {
50: '#7255a6',
500: '#2b1180',
950: '#000000',
},
}SCSS
$custom: #2b1180; $custom-light: #7255a6; $custom-dark: #000000;
JSON
{
"hex": "#2b1180",
"rgb": {
"r": 43,
"g": 17,
"b": 128
},
"hsl": {
"h": 254.054,
"s": 76.552,
"l": 28.431
},
"oklch": {
"l": 0.31092,
"c": 0.1666,
"h": 281.4
},
"luminance": 0.02473
}Semantic roles & 50–950 ramp
primary
#2B1180
secondary
#98B637
accent
#F335C7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F