#2B196F#2B196F
#2B196F is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.2% C 0.138 H 284.0°. Best body text is #FFFFFF at 14.27:1 contrast (WCAG AA passes).
Color values
| HEX | #2B196F |
|---|---|
| RGB | rgb(43, 25, 111) |
| HSL | hsl(253, 63%, 27%) |
| HSV | hsv(253, 77%, 44%) |
| CMYK | cmyk(61.3%, 77.5%, 0%, 56.5%) |
| CIE-LAB | lab(17.26, 33.60, -46.57) |
| CIE-LCH | lch(17.26, 57.42, 305.81°) |
| OKLab | oklab(30.15% 0.0335 -0.1342) |
| OKLCH | oklch(30.15% 0.138 284) |
| XYZ | xyz(4.2123, 2.3563, 15.2687) |
| Luminance | 0.0236 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 2.52
Dark Royal Blue
#02066F
ΔE00 5.10
Indigo (survey)
#380282
ΔE00 5.22
Darkblue (survey)
#030764
ΔE00 5.22
Dark Indigo
#1F0954
ΔE00 5.29
Deep Blue
#040273
ΔE00 5.53
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B196F #5D6F19
analogous
#19326F #2B196F #56196F
triadic
#2B196F #6F2B19 #196F2B
tetradic
#2B196F #6F1932 #5D6F19 #196F56
square
#2B196F #6F1932 #5D6F19 #196F56
split-complementary
#2B196F #6F5619 #326F19
monochromatic
#0A0619 #180E3D #2B196F #3E24A1 #5332D1
Accessibility & contrast
On white
14.27
#2B196F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.47
#2B196F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B196F
14.27:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B196F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B196F | 1.00 | 14.27 | 1.47 | 14.27 |
| #FFFFFF | 14.27 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.47 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.27 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002D71
Deuteranopia (green-blind)
#00286D
Tritanopia (blue-blind)
#043142
Achromatopsia (no color)
#2A2A2A
Design tokens & code
CSS
--color: #2b196f; /* rgb */ color: rgb(43, 25, 111); /* oklch */ color: oklch(30.2% 0.138 284.0);
Tailwind
colors: {
custom: {
50: '#6e5899',
500: '#2b196f',
950: '#000000',
},
}SCSS
$custom: #2b196f; $custom-light: #6e5899; $custom-dark: #000000;
JSON
{
"hex": "#2b196f",
"rgb": {
"r": 43,
"g": 25,
"b": 111
},
"hsl": {
"h": 252.558,
"s": 63.235,
"l": 26.667
},
"oklch": {
"l": 0.30152,
"c": 0.13827,
"h": 284
},
"luminance": 0.02357
}Semantic roles & 50–950 ramp
primary
#2B196F
secondary
#8FA43F
accent
#E642C4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E