#2B196E#2B196E
#2B196E is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.0% C 0.137 H 284.2°. Best body text is #FFFFFF at 14.31:1 contrast (WCAG AA passes).
Color values
| HEX | #2B196E |
|---|---|
| RGB | rgb(43, 25, 110) |
| HSL | hsl(253, 63%, 26%) |
| HSV | hsv(253, 77%, 43%) |
| CMYK | cmyk(60.9%, 77.3%, 0%, 56.9%) |
| CIE-LAB | lab(17.15, 33.27, -46.09) |
| CIE-LCH | lch(17.15, 56.84, 305.83°) |
| OKLab | oklab(30.05% 0.0337 -0.1328) |
| OKLCH | oklch(30.05% 0.137 284.2) |
| XYZ | xyz(4.1575, 2.3344, 14.9803) |
| Luminance | 0.0233 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 2.57
Dark Royal Blue
#02066F
ΔE00 5.15
Dark Indigo
#1F0954
ΔE00 5.17
Darkblue (survey)
#030764
ΔE00 5.21
Indigo (survey)
#380282
ΔE00 5.34
Deep Blue
#040273
ΔE00 5.60
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B196E #5C6E19
analogous
#19326E #2B196E #56196E
triadic
#2B196E #6E2B19 #196E2B
tetradic
#2B196E #6E1932 #5C6E19 #196E56
square
#2B196E #6E1932 #5C6E19 #196E56
split-complementary
#2B196E #6E5619 #326E19
monochromatic
#0A0619 #180E3C #2B196E #3E24A0 #5331D0
Accessibility & contrast
On white
14.31
#2B196E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.47
#2B196E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B196E
14.31:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B196E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B196E | 1.00 | 14.31 | 1.47 | 14.31 |
| #FFFFFF | 14.31 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.47 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.31 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002D70
Deuteranopia (green-blind)
#00276C
Tritanopia (blue-blind)
#063142
Achromatopsia (no color)
#2A2A2A
Design tokens & code
CSS
--color: #2b196e; /* rgb */ color: rgb(43, 25, 110); /* oklch */ color: oklch(30.0% 0.137 284.2);
Tailwind
colors: {
custom: {
50: '#6d5898',
500: '#2b196e',
950: '#000000',
},
}SCSS
$custom: #2b196e; $custom-light: #6d5898; $custom-dark: #000000;
JSON
{
"hex": "#2b196e",
"rgb": {
"r": 43,
"g": 25,
"b": 110
},
"hsl": {
"h": 252.706,
"s": 62.963,
"l": 26.471
},
"oklch": {
"l": 0.30047,
"c": 0.13697,
"h": 284.2
},
"luminance": 0.02335
}Semantic roles & 50–950 ramp
primary
#2B196E
secondary
#8EA33F
accent
#E642C3
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E