#2B148F#2B148F
#2B148F is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.1% C 0.182 H 278.3°. Best body text is #FFFFFF at 13.13:1 contrast (WCAG AA passes).
Color values
| HEX | #2B148F |
|---|---|
| RGB | rgb(43, 20, 143) |
| HSL | hsl(251, 75%, 32%) |
| HSV | hsv(251, 86%, 56%) |
| CMYK | cmyk(69.9%, 86%, 0%, 43.9%) |
| CIE-LAB | lab(20.03, 46.00, -62.33) |
| CIE-LCH | lch(20.03, 77.47, 306.43°) |
| OKLab | oklab(33.15% 0.0263 -0.18) |
| OKLCH | oklch(33.15% 0.182 278.3) |
| XYZ | xyz(6.2027, 2.9965, 26.2328) |
| Luminance | 0.0300 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 2.46
Indigo (survey)
#380282
ΔE00 3.56
Cobalt Blue
#030AA7
ΔE00 3.75
Darkblue
#00008B
ΔE00 3.94
Royal Blue (survey)
#0504AA
ΔE00 4.13
Ultramarine
#2000B1
ΔE00 4.68
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B148F #788F14
analogous
#143A8F #2B148F #69148F
triadic
#2B148F #8F2B14 #148F2B
tetradic
#2B148F #8F143A #788F14 #148F69
square
#2B148F #8F143A #788F14 #148F69
split-complementary
#2B148F #8F6914 #3A8F14
monochromatic
#0B0524 #1B0C59 #2B148F #3B1CC5 #5A3AE3
Accessibility & contrast
On white
13.13
#2B148F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.60
#2B148F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B148F
13.13:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B148F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B148F | 1.00 | 13.13 | 1.60 | 13.13 |
| #FFFFFF | 13.13 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.60 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.13 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003592
Deuteranopia (green-blind)
#002B8D
Tritanopia (blue-blind)
#003C54
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #2b148f; /* rgb */ color: rgb(43, 20, 143); /* oklch */ color: oklch(33.1% 0.182 278.3);
Tailwind
colors: {
custom: {
50: '#7557b1',
500: '#2b148f',
950: '#000000',
},
}SCSS
$custom: #2b148f; $custom-light: #7557b1; $custom-dark: #000000;
JSON
{
"hex": "#2b148f",
"rgb": {
"r": 43,
"g": 20,
"b": 143
},
"hsl": {
"h": 251.22,
"s": 75.46,
"l": 31.961
},
"oklch": {
"l": 0.3315,
"c": 0.18191,
"h": 278.3
},
"luminance": 0.02997
}Semantic roles & 50–950 ramp
primary
#2B148F
secondary
#AAC33C
accent
#F236CF
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0311
muted
#7C7880