#2B197F#2B197F
#2B197F is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.9% C 0.159 H 280.5°. Best body text is #FFFFFF at 13.56:1 contrast (WCAG AA passes).
Color values
| HEX | #2B197F |
|---|---|
| RGB | rgb(43, 25, 127) |
| HSL | hsl(251, 67%, 30%) |
| HSV | hsv(251, 80%, 50%) |
| CMYK | cmyk(66.1%, 80.3%, 0%, 50.2%) |
| CIE-LAB | lab(18.97, 38.74, -54.01) |
| CIE-LCH | lch(18.97, 66.47, 305.65°) |
| OKLab | oklab(31.87% 0.029 -0.1559) |
| OKLCH | oklch(31.87% 0.159 280.5) |
| XYZ | xyz(5.1734, 2.7408, 20.3310) |
| Luminance | 0.0274 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.30
Royal
#0C1793
ΔE00 3.76
Indigo (survey)
#380282
ΔE00 3.98
Darkblue
#00008B
ΔE00 5.03
Navy
#000080
ΔE00 5.07
Dark Royal Blue
#02066F
ΔE00 5.18
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B197F #6D7F19
analogous
#193A7F #2B197F #5E197F
triadic
#2B197F #7F2B19 #197F2B
tetradic
#2B197F #7F193A #6D7F19 #197F5E
square
#2B197F #7F193A #6D7F19 #197F5E
split-complementary
#2B197F #7F5E19 #3A7F19
monochromatic
#09051A #1A0F4C #2B197F #3C23B2 #563AD8
Accessibility & contrast
On white
13.56
#2B197F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.55
#2B197F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B197F
13.56:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B197F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B197F | 1.00 | 13.56 | 1.55 | 13.56 |
| #FFFFFF | 13.56 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.56 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003282
Deuteranopia (green-blind)
#002A7D
Tritanopia (blue-blind)
#00374C
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #2b197f; /* rgb */ color: rgb(43, 25, 127); /* oklch */ color: oklch(31.9% 0.159 280.5);
Tailwind
colors: {
custom: {
50: '#7159a5',
500: '#2b197f',
950: '#000000',
},
}SCSS
$custom: #2b197f; $custom-light: #7159a5; $custom-dark: #000000;
JSON
{
"hex": "#2b197f",
"rgb": {
"r": 43,
"g": 25,
"b": 127
},
"hsl": {
"h": 250.588,
"s": 67.105,
"l": 29.804
},
"oklch": {
"l": 0.31874,
"c": 0.15856,
"h": 280.5
},
"luminance": 0.02741
}Semantic roles & 50–950 ramp
primary
#2B197F
secondary
#9FB341
accent
#EA3ECC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F