#2B156B#2B156B
#2B156B is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.2% C 0.138 H 285.9°. Best body text is #FFFFFF at 14.77:1 contrast (WCAG AA passes).
Color values
| HEX | #2B156B |
|---|---|
| RGB | rgb(43, 21, 107) |
| HSL | hsl(255, 67%, 25%) |
| HSV | hsv(255, 80%, 42%) |
| CMYK | cmyk(59.8%, 80.4%, 0%, 58%) |
| CIE-LAB | lab(16.06, 34.52, -45.93) |
| CIE-LCH | lch(16.06, 57.46, 306.93°) |
| OKLab | oklab(29.18% 0.0377 -0.1322) |
| OKLCH | oklch(29.18% 0.138 285.9) |
| XYZ | xyz(3.9175, 2.1112, 14.1082) |
| Luminance | 0.0211 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.08
Dark Indigo
#1F0954
ΔE00 4.37
Darkblue (survey)
#030764
ΔE00 4.71
Dark Royal Blue
#02066F
ΔE00 4.75
Indigo (survey)
#380282
ΔE00 5.03
Deep Blue
#040273
ΔE00 5.16
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B156B #556B15
analogous
#152A6B #2B156B #56156B
triadic
#2B156B #6B2B15 #156B2B
tetradic
#2B156B #6B152A #556B15 #156B56
square
#2B156B #6B152A #556B15 #156B56
split-complementary
#2B156B #6B5615 #2A6B15
monochromatic
#0A051A #160B38 #2B156B #401F9E #5429D1
Accessibility & contrast
On white
14.77
#2B156B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.42
#2B156B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B156B
14.77:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B156B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B156B | 1.00 | 14.77 | 1.42 | 14.77 |
| #FFFFFF | 14.77 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.42 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.77 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002A6D
Deuteranopia (green-blind)
#002569
Tritanopia (blue-blind)
#0B2E3F
Achromatopsia (no color)
#282828
Design tokens & code
CSS
--color: #2b156b; /* rgb */ color: rgb(43, 21, 107); /* oklch */ color: oklch(29.2% 0.138 285.9);
Tailwind
colors: {
custom: {
50: '#6d5596',
500: '#2b156b',
950: '#000000',
},
}SCSS
$custom: #2b156b; $custom-light: #6d5596; $custom-dark: #000000;
JSON
{
"hex": "#2b156b",
"rgb": {
"r": 43,
"g": 21,
"b": 107
},
"hsl": {
"h": 255.349,
"s": 67.188,
"l": 25.098
},
"oklch": {
"l": 0.29184,
"c": 0.13753,
"h": 285.9
},
"luminance": 0.02111
}Semantic roles & 50–950 ramp
primary
#2B156B
secondary
#87A23A
accent
#EA3EBE
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030D
muted
#7B787E