#2B155E#2B155E
#2B155E is a dark, vivid violet. Relative luminance 0.019; OKLCH L 27.8% C 0.121 H 290.0°. Best body text is #FFFFFF at 15.31:1 contrast (WCAG AA passes).
Color values
| HEX | #2B155E |
|---|---|
| RGB | rgb(43, 21, 94) |
| HSL | hsl(258, 63%, 23%) |
| HSV | hsv(258, 78%, 37%) |
| CMYK | cmyk(54.3%, 77.7%, 0%, 63.1%) |
| CIE-LAB | lab(14.72, 30.43, -39.53) |
| CIE-LCH | lch(14.72, 49.89, 307.58°) |
| OKLab | oklab(27.84% 0.0414 -0.1135) |
| OKLCH | oklch(27.84% 0.121 290) |
| XYZ | xyz(3.2842, 1.8579, 10.7731) |
| Luminance | 0.0186 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Indigo
#1F0954
ΔE00 3.07
Midnight Blue
#191970
ΔE00 4.67
Darkblue (survey)
#030764
ΔE00 5.53
Dark Blue
#00035B
ΔE00 5.96
Dark Royal Blue
#02066F
ΔE00 6.26
Night Blue
#040348
ΔE00 6.41
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B155E #485E15
analogous
#15245E #2B155E #4F155E
triadic
#2B155E #5E2B15 #155E2B
tetradic
#2B155E #5E1524 #485E15 #155E4F
square
#2B155E #5E1524 #485E15 #155E4F
split-complementary
#2B155E #5E4F15 #245E15
monochromatic
#0B0619 #140A2C #2B155E #422090 #592BC2
Accessibility & contrast
On white
15.31
#2B155E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.37
#2B155E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B155E
15.31:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B155E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B155E | 1.00 | 15.31 | 1.37 | 15.31 |
| #FFFFFF | 15.31 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.37 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 15.31 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002660
Deuteranopia (green-blind)
#00235D
Tritanopia (blue-blind)
#192838
Achromatopsia (no color)
#252525
Design tokens & code
CSS
--color: #2b155e; /* rgb */ color: rgb(43, 21, 94); /* oklch */ color: oklch(27.8% 0.121 290.0);
Tailwind
colors: {
custom: {
50: '#6b558c',
500: '#2b155e',
950: '#000000',
},
}SCSS
$custom: #2b155e; $custom-light: #6b558c; $custom-dark: #000000;
JSON
{
"hex": "#2b155e",
"rgb": {
"r": 43,
"g": 21,
"b": 94
},
"hsl": {
"h": 258.082,
"s": 63.478,
"l": 22.549
},
"oklch": {
"l": 0.27836,
"c": 0.12082,
"h": 290
},
"luminance": 0.01858
}Semantic roles & 50–950 ramp
primary
#2B155E
secondary
#7A9539
accent
#E741B5
background
#F6F5F8
surface
#ECE8F0
border
#C7C4CB
text
#07030C
muted
#7A787D