#2B1979#2B1979
#2B1979 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.2% C 0.151 H 281.7°. Best body text is #FFFFFF at 13.84:1 contrast (WCAG AA passes).
Color values
| HEX | #2B1979 |
|---|---|
| RGB | rgb(43, 25, 121) |
| HSL | hsl(251, 66%, 29%) |
| HSV | hsv(251, 79%, 47%) |
| CMYK | cmyk(64.5%, 79.3%, 0%, 52.5%) |
| CIE-LAB | lab(18.32, 36.82, -51.27) |
| CIE-LCH | lch(18.32, 63.12, 305.69°) |
| OKLab | oklab(31.22% 0.0307 -0.1479) |
| OKLCH | oklch(31.22% 0.151 281.7) |
| XYZ | xyz(4.7940, 2.5890, 18.3325) |
| Luminance | 0.0259 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 2.74
Indigo (survey)
#380282
ΔE00 4.27
Royal
#0C1793
ΔE00 4.59
Dark Royal Blue
#02066F
ΔE00 4.96
Deep Blue
#040273
ΔE00 5.19
Navy
#000080
ΔE00 5.32
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B1979 #677919
analogous
#193779 #2B1979 #5B1979
triadic
#2B1979 #792B19 #19792B
tetradic
#2B1979 #791937 #677919 #19795B
square
#2B1979 #791937 #677919 #19795B
split-complementary
#2B1979 #795B19 #377919
monochromatic
#090519 #190F46 #2B1979 #3D23AC #5537D6
Accessibility & contrast
On white
13.84
#2B1979 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.52
#2B1979 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B1979
13.84:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B1979 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B1979 | 1.00 | 13.84 | 1.52 | 13.84 |
| #FFFFFF | 13.84 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.52 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.84 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00307C
Deuteranopia (green-blind)
#002977
Tritanopia (blue-blind)
#003548
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #2b1979; /* rgb */ color: rgb(43, 25, 121); /* oklch */ color: oklch(31.2% 0.151 281.7);
Tailwind
colors: {
custom: {
50: '#7058a1',
500: '#2b1979',
950: '#000000',
},
}SCSS
$custom: #2b1979; $custom-light: #7058a1; $custom-dark: #000000;
JSON
{
"hex": "#2b1979",
"rgb": {
"r": 43,
"g": 25,
"b": 121
},
"hsl": {
"h": 251.25,
"s": 65.753,
"l": 28.627
},
"oklch": {
"l": 0.31217,
"c": 0.15106,
"h": 281.7
},
"luminance": 0.02589
}Semantic roles & 50–950 ramp
primary
#2B1979
secondary
#99AE40
accent
#E93FC9
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08030F
muted
#7B787F