#2B146B#2B146B
#2B146B is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.1% C 0.139 H 286.1°. Best body text is #FFFFFF at 14.84:1 contrast (WCAG AA passes).
Color values
| HEX | #2B146B |
|---|---|
| RGB | rgb(43, 20, 107) |
| HSL | hsl(256, 69%, 25%) |
| HSV | hsv(256, 81%, 42%) |
| CMYK | cmyk(59.8%, 81.3%, 0%, 58%) |
| CIE-LAB | lab(15.88, 35.05, -46.23) |
| CIE-LCH | lch(15.88, 58.01, 307.17°) |
| OKLab | oklab(29.06% 0.0385 -0.1331) |
| OKLCH | oklch(29.06% 0.139 286.1) |
| XYZ | xyz(3.8995, 2.0752, 14.1021) |
| Luminance | 0.0208 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.19
Dark Indigo
#1F0954
ΔE00 4.30
Darkblue (survey)
#030764
ΔE00 4.61
Dark Royal Blue
#02066F
ΔE00 4.63
Indigo (survey)
#380282
ΔE00 4.88
Deep Blue
#040273
ΔE00 5.02
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B146B #546B14
analogous
#14296B #2B146B #57146B
triadic
#2B146B #6B2B14 #146B2B
tetradic
#2B146B #6B1429 #546B14 #146B57
square
#2B146B #6B1429 #546B14 #146B57
split-complementary
#2B146B #6B5714 #296B14
monochromatic
#0A051A #160A37 #2B146B #401E9F #5427D2
Accessibility & contrast
On white
14.84
#2B146B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.42
#2B146B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B146B
14.84:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B146B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B146B | 1.00 | 14.84 | 1.42 | 14.84 |
| #FFFFFF | 14.84 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.42 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.84 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002A6D
Deuteranopia (green-blind)
#002569
Tritanopia (blue-blind)
#0B2D3F
Achromatopsia (no color)
#282828
Design tokens & code
CSS
--color: #2b146b; /* rgb */ color: rgb(43, 20, 107); /* oklch */ color: oklch(29.1% 0.139 286.1);
Tailwind
colors: {
custom: {
50: '#6d5596',
500: '#2b146b',
950: '#000000',
},
}SCSS
$custom: #2b146b; $custom-light: #6d5596; $custom-dark: #000000;
JSON
{
"hex": "#2b146b",
"rgb": {
"r": 43,
"g": 20,
"b": 107
},
"hsl": {
"h": 255.862,
"s": 68.504,
"l": 24.902
},
"oklch": {
"l": 0.29056,
"c": 0.13858,
"h": 286.1
},
"luminance": 0.02075
}Semantic roles & 50–950 ramp
primary
#2B146B
secondary
#86A239
accent
#EB3CBD
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030D
muted
#7B787E