#2B176F#2B176F
#2B176F is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.9% C 0.140 H 284.4°. Best body text is #FFFFFF at 14.43:1 contrast (WCAG AA passes).
Color values
| HEX | #2B176F |
|---|---|
| RGB | rgb(43, 23, 111) |
| HSL | hsl(254, 66%, 26%) |
| HSV | hsv(254, 79%, 44%) |
| CMYK | cmyk(61.3%, 79.3%, 0%, 56.5%) |
| CIE-LAB | lab(16.86, 34.71, -47.21) |
| CIE-LCH | lch(16.86, 58.60, 306.32°) |
| OKLab | oklab(29.88% 0.035 -0.136) |
| OKLCH | oklch(29.88% 0.14 284.4) |
| XYZ | xyz(4.1710, 2.2738, 15.2549) |
| Luminance | 0.0227 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 2.67
Dark Royal Blue
#02066F
ΔE00 4.79
Indigo (survey)
#380282
ΔE00 4.84
Darkblue (survey)
#030764
ΔE00 4.95
Dark Indigo
#1F0954
ΔE00 5.09
Deep Blue
#040273
ΔE00 5.17
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B176F #5B6F17
analogous
#172F6F #2B176F #57176F
triadic
#2B176F #6F2B17 #176F2B
tetradic
#2B176F #6F172F #5B6F17 #176F57
square
#2B176F #6F172F #5B6F17 #176F57
split-complementary
#2B176F #6F5717 #2F6F17
monochromatic
#0A0519 #170C3C #2B176F #3F22A2 #532DD3
Accessibility & contrast
On white
14.43
#2B176F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.45
#2B176F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B176F
14.43:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B176F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B176F | 1.00 | 14.43 | 1.45 | 14.43 |
| #FFFFFF | 14.43 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.45 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.43 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002C72
Deuteranopia (green-blind)
#00276D
Tritanopia (blue-blind)
#043042
Achromatopsia (no color)
#2A2A2A
Design tokens & code
CSS
--color: #2b176f; /* rgb */ color: rgb(43, 23, 111); /* oklch */ color: oklch(29.9% 0.140 284.4);
Tailwind
colors: {
custom: {
50: '#6e5799',
500: '#2b176f',
950: '#000000',
},
}SCSS
$custom: #2b176f; $custom-light: #6e5799; $custom-dark: #000000;
JSON
{
"hex": "#2b176f",
"rgb": {
"r": 43,
"g": 23,
"b": 111
},
"hsl": {
"h": 253.636,
"s": 65.672,
"l": 26.275
},
"oklch": {
"l": 0.29875,
"c": 0.14047,
"h": 284.4
},
"luminance": 0.02274
}Semantic roles & 50–950 ramp
primary
#2B176F
secondary
#8DA53D
accent
#E93FC2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E