#2B148B#2B148B
#2B148B is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.7% C 0.177 H 279.0°. Best body text is #FFFFFF at 13.33:1 contrast (WCAG AA passes).
Color values
| HEX | #2B148B |
|---|---|
| RGB | rgb(43, 20, 139) |
| HSL | hsl(252, 75%, 31%) |
| HSV | hsv(252, 86%, 55%) |
| CMYK | cmyk(69.1%, 85.6%, 0%, 45.5%) |
| CIE-LAB | lab(19.55, 44.81, -60.63) |
| CIE-LCH | lch(19.55, 75.40, 306.47°) |
| OKLab | oklab(32.68% 0.0277 -0.1751) |
| OKLCH | oklch(32.68% 0.177 279) |
| XYZ | xyz(5.9051, 2.8775, 24.6653) |
| Luminance | 0.0288 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 2.65
Indigo (survey)
#380282
ΔE00 3.30
Darkblue
#00008B
ΔE00 3.88
Cobalt Blue
#030AA7
ΔE00 4.24
Navy
#000080
ΔE00 4.52
Royal Blue (survey)
#0504AA
ΔE00 4.62
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B148B #748B14
analogous
#14388B #2B148B #66148B
triadic
#2B148B #8B2B14 #148B2B
tetradic
#2B148B #8B1438 #748B14 #148B66
square
#2B148B #8B1438 #748B14 #148B66
split-complementary
#2B148B #8B6614 #388B14
monochromatic
#0A0520 #1A0C55 #2B148B #3C1CC1 #5837E2
Accessibility & contrast
On white
13.33
#2B148B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.58
#2B148B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B148B
13.33:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B148B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B148B | 1.00 | 13.33 | 1.58 | 13.33 |
| #FFFFFF | 13.33 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.33 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00348E
Deuteranopia (green-blind)
#002B89
Tritanopia (blue-blind)
#003A52
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #2b148b; /* rgb */ color: rgb(43, 20, 139); /* oklch */ color: oklch(32.7% 0.177 279.0);
Tailwind
colors: {
custom: {
50: '#7457ae',
500: '#2b148b',
950: '#000000',
},
}SCSS
$custom: #2b148b; $custom-light: #7457ae; $custom-dark: #000000;
JSON
{
"hex": "#2b148b",
"rgb": {
"r": 43,
"g": 20,
"b": 139
},
"hsl": {
"h": 251.597,
"s": 74.843,
"l": 31.176
},
"oklch": {
"l": 0.32678,
"c": 0.17725,
"h": 279
},
"luminance": 0.02878
}Semantic roles & 50–950 ramp
primary
#2B148B
secondary
#A6BF3C
accent
#F136CD
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090310
muted
#7B787F