#2B148E#2B148E
#2B148E is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.0% C 0.181 H 278.5°. Best body text is #FFFFFF at 13.18:1 contrast (WCAG AA passes).
Color values
| HEX | #2B148E |
|---|---|
| RGB | rgb(43, 20, 142) |
| HSL | hsl(251, 75%, 32%) |
| HSV | hsv(251, 86%, 56%) |
| CMYK | cmyk(69.7%, 85.9%, 0%, 44.3%) |
| CIE-LAB | lab(19.91, 45.70, -61.91) |
| CIE-LCH | lch(19.91, 76.95, 306.44°) |
| OKLab | oklab(33.03% 0.0267 -0.1788) |
| OKLCH | oklch(33.03% 0.181 278.5) |
| XYZ | xyz(6.1273, 2.9664, 25.8356) |
| Luminance | 0.0297 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 2.50
Indigo (survey)
#380282
ΔE00 3.49
Cobalt Blue
#030AA7
ΔE00 3.87
Darkblue
#00008B
ΔE00 3.91
Royal Blue (survey)
#0504AA
ΔE00 4.25
Navy
#000080
ΔE00 4.69
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B148E #778E14
analogous
#143A8E #2B148E #68148E
triadic
#2B148E #8E2B14 #148E2B
tetradic
#2B148E #8E143A #778E14 #148E68
square
#2B148E #8E143A #778E14 #148E68
split-complementary
#2B148E #8E6814 #3A8E14
monochromatic
#0B0523 #1B0C58 #2B148E #3B1CC4 #5939E3
Accessibility & contrast
On white
13.18
#2B148E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.59
#2B148E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B148E
13.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B148E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B148E | 1.00 | 13.18 | 1.59 | 13.18 |
| #FFFFFF | 13.18 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.18 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003591
Deuteranopia (green-blind)
#002B8C
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #2b148e; /* rgb */ color: rgb(43, 20, 142); /* oklch */ color: oklch(33.0% 0.181 278.5);
Tailwind
colors: {
custom: {
50: '#7557b0',
500: '#2b148e',
950: '#000000',
},
}SCSS
$custom: #2b148e; $custom-light: #7557b0; $custom-dark: #000000;
JSON
{
"hex": "#2b148e",
"rgb": {
"r": 43,
"g": 20,
"b": 142
},
"hsl": {
"h": 251.311,
"s": 75.309,
"l": 31.765
},
"oklch": {
"l": 0.33032,
"c": 0.18076,
"h": 278.5
},
"luminance": 0.02967
}Semantic roles & 50–950 ramp
primary
#2B148E
secondary
#A9C23C
accent
#F236CE
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0311
muted
#7C7880