#2B1780#2B1780
#2B1780 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.7% C 0.162 H 280.6°. Best body text is #FFFFFF at 13.66:1 contrast (WCAG AA passes).
Color values
| HEX | #2B1780 |
|---|---|
| RGB | rgb(43, 23, 128) |
| HSL | hsl(251, 70%, 30%) |
| HSV | hsv(251, 82%, 50%) |
| CMYK | cmyk(66.4%, 82%, 0%, 49.8%) |
| CIE-LAB | lab(18.73, 40.07, -55.05) |
| CIE-LCH | lch(18.73, 68.09, 306.05°) |
| OKLab | oklab(31.74% 0.0299 -0.1589) |
| OKLCH | oklch(31.74% 0.162 280.6) |
| XYZ | xyz(5.1977, 2.6845, 20.6621) |
| Luminance | 0.0268 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.56
Indigo (survey)
#380282
ΔE00 3.57
Royal
#0C1793
ΔE00 3.62
Darkblue
#00008B
ΔE00 4.65
Navy
#000080
ΔE00 4.72
Dark Royal Blue
#02066F
ΔE00 5.01
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B1780 #6C8017
analogous
#173780 #2B1780 #601780
triadic
#2B1780 #802B17 #17802B
tetradic
#2B1780 #801737 #6C8017 #178060
square
#2B1780 #801737 #6C8017 #178060
split-complementary
#2B1780 #806017 #378017
monochromatic
#09051A #1A0E4C #2B1780 #3C20B4 #5636DB
Accessibility & contrast
On white
13.66
#2B1780 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.54
#2B1780 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B1780
13.66:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B1780 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B1780 | 1.00 | 13.66 | 1.54 | 13.66 |
| #FFFFFF | 13.66 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.54 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.66 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003183
Deuteranopia (green-blind)
#002A7E
Tritanopia (blue-blind)
#00374C
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #2b1780; /* rgb */ color: rgb(43, 23, 128); /* oklch */ color: oklch(31.7% 0.162 280.6);
Tailwind
colors: {
custom: {
50: '#7158a6',
500: '#2b1780',
950: '#000000',
},
}SCSS
$custom: #2b1780; $custom-light: #7158a6; $custom-dark: #000000;
JSON
{
"hex": "#2b1780",
"rgb": {
"r": 43,
"g": 23,
"b": 128
},
"hsl": {
"h": 251.429,
"s": 69.536,
"l": 29.608
},
"oklch": {
"l": 0.3174,
"c": 0.16166,
"h": 280.6
},
"luminance": 0.02685
}Semantic roles & 50–950 ramp
primary
#2B1780
secondary
#9EB43E
accent
#EC3BCB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F