#2B156E#2B156E
#2B156E is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.5% C 0.141 H 285.1°. Best body text is #FFFFFF at 14.63:1 contrast (WCAG AA passes).
Color values
| HEX | #2B156E |
|---|---|
| RGB | rgb(43, 21, 110) |
| HSL | hsl(255, 68%, 26%) |
| HSV | hsv(255, 81%, 43%) |
| CMYK | cmyk(60.9%, 80.9%, 0%, 56.9%) |
| CIE-LAB | lab(16.38, 35.46, -47.36) |
| CIE-LCH | lch(16.38, 59.16, 306.83°) |
| OKLab | oklab(29.51% 0.0368 -0.1364) |
| OKLCH | oklch(29.51% 0.141 285.1) |
| XYZ | xyz(4.0780, 2.1755, 14.9538) |
| Luminance | 0.0218 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 2.92
Dark Royal Blue
#02066F
ΔE00 4.57
Indigo (survey)
#380282
ΔE00 4.63
Darkblue (survey)
#030764
ΔE00 4.72
Dark Indigo
#1F0954
ΔE00 4.79
Deep Blue
#040273
ΔE00 4.92
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B156E #586E15
analogous
#152C6E #2B156E #57156E
triadic
#2B156E #6E2B15 #156E2B
tetradic
#2B156E #6E152C #586E15 #156E57
square
#2B156E #6E152C #586E15 #156E57
split-complementary
#2B156E #6E5715 #2C6E15
monochromatic
#0A051A #170B3B #2B156E #3F1FA1 #5329D5
Accessibility & contrast
On white
14.63
#2B156E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.44
#2B156E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B156E
14.63:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B156E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B156E | 1.00 | 14.63 | 1.44 | 14.63 |
| #FFFFFF | 14.63 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.44 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.63 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002B71
Deuteranopia (green-blind)
#00266C
Tritanopia (blue-blind)
#062F41
Achromatopsia (no color)
#292929
Design tokens & code
CSS
--color: #2b156e; /* rgb */ color: rgb(43, 21, 110); /* oklch */ color: oklch(29.5% 0.141 285.1);
Tailwind
colors: {
custom: {
50: '#6e5699',
500: '#2b156e',
950: '#000000',
},
}SCSS
$custom: #2b156e; $custom-light: #6e5699; $custom-dark: #000000;
JSON
{
"hex": "#2b156e",
"rgb": {
"r": 43,
"g": 21,
"b": 110
},
"hsl": {
"h": 254.831,
"s": 67.939,
"l": 25.686
},
"oklch": {
"l": 0.29506,
"c": 0.1413,
"h": 285.1
},
"luminance": 0.02176
}Semantic roles & 50–950 ramp
primary
#2B156E
secondary
#8AA43A
accent
#EB3DC0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E