#2B155F#2B155F
#2B155F is a dark, vivid violet. Relative luminance 0.019; OKLCH L 27.9% C 0.122 H 289.7°. Best body text is #FFFFFF at 15.27:1 contrast (WCAG AA passes).
Color values
| HEX | #2B155F |
|---|---|
| RGB | rgb(43, 21, 95) |
| HSL | hsl(258, 64%, 23%) |
| HSV | hsv(258, 78%, 37%) |
| CMYK | cmyk(54.7%, 77.9%, 0%, 62.7%) |
| CIE-LAB | lab(14.82, 30.74, -40.04) |
| CIE-LCH | lch(14.82, 50.48, 307.52°) |
| OKLab | oklab(27.94% 0.0411 -0.115) |
| OKLCH | oklch(27.94% 0.122 289.7) |
| XYZ | xyz(3.3294, 1.8760, 11.0109) |
| Luminance | 0.0188 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark Indigo
#1F0954
ΔE00 3.11
Midnight Blue
#191970
ΔE00 4.51
Darkblue (survey)
#030764
ΔE00 5.42
Dark Blue
#00035B
ΔE00 5.89
Dark Royal Blue
#02066F
ΔE00 6.11
Night Blue
#040348
ΔE00 6.46
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B155F #495F15
analogous
#15245F #2B155F #50155F
triadic
#2B155F #5F2B15 #155F2B
tetradic
#2B155F #5F1524 #495F15 #155F50
square
#2B155F #5F1524 #495F15 #155F50
split-complementary
#2B155F #5F5015 #245F15
monochromatic
#0B0619 #140A2D #2B155F #422091 #582BC3
Accessibility & contrast
On white
15.27
#2B155F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.38
#2B155F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B155F
15.27:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B155F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B155F | 1.00 | 15.27 | 1.38 | 15.27 |
| #FFFFFF | 15.27 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.38 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 15.27 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002761
Deuteranopia (green-blind)
#00245E
Tritanopia (blue-blind)
#182938
Achromatopsia (no color)
#252525
Design tokens & code
CSS
--color: #2b155f; /* rgb */ color: rgb(43, 21, 95); /* oklch */ color: oklch(27.9% 0.122 289.7);
Tailwind
colors: {
custom: {
50: '#6b558d',
500: '#2b155f',
950: '#000000',
},
}SCSS
$custom: #2b155f; $custom-light: #6b558d; $custom-dark: #000000;
JSON
{
"hex": "#2b155f",
"rgb": {
"r": 43,
"g": 21,
"b": 95
},
"hsl": {
"h": 257.838,
"s": 63.793,
"l": 22.745
},
"oklch": {
"l": 0.27936,
"c": 0.12213,
"h": 289.7
},
"luminance": 0.01876
}Semantic roles & 50–950 ramp
primary
#2B155F
secondary
#7B963A
accent
#E741B6
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D