#2B176C#2B176C
#2B176C is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.6% C 0.137 H 285.2°. Best body text is #FFFFFF at 14.57:1 contrast (WCAG AA passes).
Color values
| HEX | #2B176C |
|---|---|
| RGB | rgb(43, 23, 108) |
| HSL | hsl(254, 65%, 26%) |
| HSV | hsv(254, 79%, 42%) |
| CMYK | cmyk(60.2%, 78.7%, 0%, 57.6%) |
| CIE-LAB | lab(16.55, 33.75, -45.78) |
| CIE-LCH | lch(16.55, 56.88, 306.40°) |
| OKLab | oklab(29.56% 0.0359 -0.1318) |
| OKLCH | oklch(29.56% 0.137 285.2) |
| XYZ | xyz(4.0086, 2.2089, 14.3996) |
| Luminance | 0.0221 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 2.82
Dark Indigo
#1F0954
ΔE00 4.69
Darkblue (survey)
#030764
ΔE00 4.94
Dark Royal Blue
#02066F
ΔE00 4.96
Indigo (survey)
#380282
ΔE00 5.22
Deep Blue
#040273
ΔE00 5.40
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B176C #586C17
analogous
#172D6C #2B176C #55176C
triadic
#2B176C #6C2B17 #176C2B
tetradic
#2B176C #6C172D #586C17 #176C55
square
#2B176C #6C172D #586C17 #176C55
split-complementary
#2B176C #6C5517 #2D6C17
monochromatic
#0A0519 #170C3A #2B176C #3F229E #532CD1
Accessibility & contrast
On white
14.57
#2B176C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.44
#2B176C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B176C
14.57:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B176C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B176C | 1.00 | 14.57 | 1.44 | 14.57 |
| #FFFFFF | 14.57 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.44 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.57 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002B6E
Deuteranopia (green-blind)
#00266A
Tritanopia (blue-blind)
#092F40
Achromatopsia (no color)
#292929
Design tokens & code
CSS
--color: #2b176c; /* rgb */ color: rgb(43, 23, 108); /* oklch */ color: oklch(29.6% 0.137 285.2);
Tailwind
colors: {
custom: {
50: '#6d5797',
500: '#2b176c',
950: '#000000',
},
}SCSS
$custom: #2b176c; $custom-light: #6d5797; $custom-dark: #000000;
JSON
{
"hex": "#2b176c",
"rgb": {
"r": 43,
"g": 23,
"b": 108
},
"hsl": {
"h": 254.118,
"s": 64.885,
"l": 25.686
},
"oklch": {
"l": 0.29558,
"c": 0.13663,
"h": 285.2
},
"luminance": 0.02209
}Semantic roles & 50–950 ramp
primary
#2B176C
secondary
#8AA23D
accent
#E840C0
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E