#2B176B#2B176B
#2B176B is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.5% C 0.135 H 285.5°. Best body text is #FFFFFF at 14.61:1 contrast (WCAG AA passes).
Color values
| HEX | #2B176B |
|---|---|
| RGB | rgb(43, 23, 107) |
| HSL | hsl(254, 65%, 25%) |
| HSV | hsv(254, 79%, 42%) |
| CMYK | cmyk(59.8%, 78.5%, 0%, 58%) |
| CIE-LAB | lab(16.44, 33.43, -45.30) |
| CIE-LCH | lch(16.44, 56.30, 306.43°) |
| OKLab | oklab(29.45% 0.0361 -0.1304) |
| OKLCH | oklch(29.45% 0.135 285.5) |
| XYZ | xyz(3.9557, 2.1877, 14.1209) |
| Luminance | 0.0219 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 2.90
Dark Indigo
#1F0954
ΔE00 4.56
Darkblue (survey)
#030764
ΔE00 4.95
Dark Royal Blue
#02066F
ΔE00 5.03
Indigo (survey)
#380282
ΔE00 5.35
Deep Blue
#040273
ΔE00 5.49
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B176B #576B17
analogous
#172D6B #2B176B #55176B
triadic
#2B176B #6B2B17 #176B2B
tetradic
#2B176B #6B172D #576B17 #176B55
square
#2B176B #6B172D #576B17 #176B55
split-complementary
#2B176B #6B5517 #2D6B17
monochromatic
#0A0519 #170C39 #2B176B #3F229D #532DD0
Accessibility & contrast
On white
14.61
#2B176B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.44
#2B176B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B176B
14.61:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B176B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B176B | 1.00 | 14.61 | 1.44 | 14.61 |
| #FFFFFF | 14.61 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.44 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.61 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002B6D
Deuteranopia (green-blind)
#002669
Tritanopia (blue-blind)
#0B2E40
Achromatopsia (no color)
#292929
Design tokens & code
CSS
--color: #2b176b; /* rgb */ color: rgb(43, 23, 107); /* oklch */ color: oklch(29.5% 0.135 285.5);
Tailwind
colors: {
custom: {
50: '#6d5696',
500: '#2b176b',
950: '#000000',
},
}SCSS
$custom: #2b176b; $custom-light: #6d5696; $custom-dark: #000000;
JSON
{
"hex": "#2b176b",
"rgb": {
"r": 43,
"g": 23,
"b": 107
},
"hsl": {
"h": 254.286,
"s": 64.615,
"l": 25.49
},
"oklch": {
"l": 0.29453,
"c": 0.13534,
"h": 285.5
},
"luminance": 0.02188
}Semantic roles & 50–950 ramp
primary
#2B176B
secondary
#89A13D
accent
#E840C0
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030D
muted
#7B787E