#2B166A#2B166A
#2B166A is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.2% C 0.135 H 286.0°. Best body text is #FFFFFF at 14.73:1 contrast (WCAG AA passes).
Color values
| HEX | #2B166A |
|---|---|
| RGB | rgb(43, 22, 106) |
| HSL | hsl(255, 66%, 25%) |
| HSV | hsv(255, 79%, 42%) |
| CMYK | cmyk(59.4%, 79.2%, 0%, 58.4%) |
| CIE-LAB | lab(16.14, 33.67, -45.14) |
| CIE-LCH | lch(16.14, 56.31, 306.72°) |
| OKLab | oklab(29.21% 0.0372 -0.1299) |
| OKLCH | oklch(29.21% 0.135 286) |
| XYZ | xyz(3.8839, 2.1278, 13.8389) |
| Luminance | 0.0213 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.06
Dark Indigo
#1F0954
ΔE00 4.33
Darkblue (survey)
#030764
ΔE00 4.84
Dark Royal Blue
#02066F
ΔE00 4.96
Indigo (survey)
#380282
ΔE00 5.32
Deep Blue
#040273
ΔE00 5.41
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B166A #556A16
analogous
#162B6A #2B166A #55166A
triadic
#2B166A #6A2B16 #166A2B
tetradic
#2B166A #6A162B #556A16 #166A55
square
#2B166A #6A162B #556A16 #166A55
split-complementary
#2B166A #6A5516 #2B6A16
monochromatic
#0A0519 #160B37 #2B166A #40219D #542BCF
Accessibility & contrast
On white
14.73
#2B166A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.43
#2B166A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B166A
14.73:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B166A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B166A | 1.00 | 14.73 | 1.43 | 14.73 |
| #FFFFFF | 14.73 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.43 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.73 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002A6C
Deuteranopia (green-blind)
#002668
Tritanopia (blue-blind)
#0D2E3F
Achromatopsia (no color)
#282828
Design tokens & code
CSS
--color: #2b166a; /* rgb */ color: rgb(43, 22, 106); /* oklch */ color: oklch(29.2% 0.135 286.0);
Tailwind
colors: {
custom: {
50: '#6d5696',
500: '#2b166a',
950: '#000000',
},
}SCSS
$custom: #2b166a; $custom-light: #6d5696; $custom-dark: #000000;
JSON
{
"hex": "#2b166a",
"rgb": {
"r": 43,
"g": 22,
"b": 106
},
"hsl": {
"h": 255,
"s": 65.625,
"l": 25.098
},
"oklch": {
"l": 0.29211,
"c": 0.13517,
"h": 286
},
"luminance": 0.02128
}Semantic roles & 50–950 ramp
primary
#2B166A
secondary
#87A03B
accent
#E93FBE
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030D
muted
#7B787E