#2B157B#2B157B
#2B157B is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.9% C 0.157 H 282.0°. Best body text is #FFFFFF at 14.04:1 contrast (WCAG AA passes).
Color values
| HEX | #2B157B |
|---|---|
| RGB | rgb(43, 21, 123) |
| HSL | hsl(253, 71%, 28%) |
| HSV | hsv(253, 83%, 48%) |
| CMYK | cmyk(65%, 82.9%, 0%, 51.8%) |
| CIE-LAB | lab(17.83, 39.51, -53.36) |
| CIE-LCH | lch(17.83, 66.39, 306.51°) |
| OKLab | oklab(30.94% 0.0326 -0.1539) |
| OKLCH | oklch(30.94% 0.157 282) |
| XYZ | xyz(4.8385, 2.4796, 18.9587) |
| Luminance | 0.0248 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.27
Indigo (survey)
#380282
ΔE00 3.41
Royal
#0C1793
ΔE00 4.30
Dark Royal Blue
#02066F
ΔE00 4.53
Navy
#000080
ΔE00 4.58
Deep Blue
#040273
ΔE00 4.59
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B157B #657B15
analogous
#15327B #2B157B #5E157B
triadic
#2B157B #7B2B15 #157B2B
tetradic
#2B157B #7B1532 #657B15 #157B5E
square
#2B157B #7B1532 #657B15 #157B5E
split-complementary
#2B157B #7B5E15 #327B15
monochromatic
#09041A #190C47 #2B157B #3D1EAF #542FDB
Accessibility & contrast
On white
14.04
#2B157B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.50
#2B157B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B157B
14.04:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B157B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B157B | 1.00 | 14.04 | 1.50 | 14.04 |
| #FFFFFF | 14.04 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.50 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.04 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F7E
Deuteranopia (green-blind)
#002879
Tritanopia (blue-blind)
#003448
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #2b157b; /* rgb */ color: rgb(43, 21, 123); /* oklch */ color: oklch(30.9% 0.157 282.0);
Tailwind
colors: {
custom: {
50: '#7056a2',
500: '#2b157b',
950: '#000000',
},
}SCSS
$custom: #2b157b; $custom-light: #7056a2; $custom-dark: #000000;
JSON
{
"hex": "#2b157b",
"rgb": {
"r": 43,
"g": 21,
"b": 123
},
"hsl": {
"h": 252.941,
"s": 70.833,
"l": 28.235
},
"oklch": {
"l": 0.30942,
"c": 0.15736,
"h": 282
},
"luminance": 0.0248
}Semantic roles & 50–950 ramp
primary
#2B157B
secondary
#97B03B
accent
#EE3AC7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F