#2B147B#2B147B
#2B147B is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.8% C 0.158 H 282.1°. Best body text is #FFFFFF at 14.11:1 contrast (WCAG AA passes).
Color values
| HEX | #2B147B |
|---|---|
| RGB | rgb(43, 20, 123) |
| HSL | hsl(253, 72%, 28%) |
| HSV | hsv(253, 84%, 48%) |
| CMYK | cmyk(65%, 83.7%, 0%, 51.8%) |
| CIE-LAB | lab(17.66, 39.98, -53.63) |
| CIE-LCH | lch(17.66, 66.90, 306.71°) |
| OKLab | oklab(30.83% 0.0332 -0.1547) |
| OKLCH | oklch(30.83% 0.158 282.1) |
| XYZ | xyz(4.8204, 2.4436, 18.9527) |
| Luminance | 0.0244 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.25
Midnight Blue
#191970
ΔE00 3.38
Royal
#0C1793
ΔE00 4.33
Dark Royal Blue
#02066F
ΔE00 4.44
Navy
#000080
ΔE00 4.44
Deep Blue
#040273
ΔE00 4.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B147B #647B14
analogous
#14307B #2B147B #5E147B
triadic
#2B147B #7B2B14 #147B2B
tetradic
#2B147B #7B1430 #647B14 #147B5E
square
#2B147B #7B1430 #647B14 #147B5E
split-complementary
#2B147B #7B5E14 #307B14
monochromatic
#09041A #190B46 #2B147B #3D1DB0 #542DDD
Accessibility & contrast
On white
14.11
#2B147B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.49
#2B147B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B147B
14.11:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B147B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B147B | 1.00 | 14.11 | 1.49 | 14.11 |
| #FFFFFF | 14.11 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.49 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.11 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F7E
Deuteranopia (green-blind)
#002879
Tritanopia (blue-blind)
#003448
Achromatopsia (no color)
#2B2B2B
Design tokens & code
CSS
--color: #2b147b; /* rgb */ color: rgb(43, 20, 123); /* oklch */ color: oklch(30.8% 0.158 282.1);
Tailwind
colors: {
custom: {
50: '#7056a2',
500: '#2b147b',
950: '#000000',
},
}SCSS
$custom: #2b147b; $custom-light: #7056a2; $custom-dark: #000000;
JSON
{
"hex": "#2b147b",
"rgb": {
"r": 43,
"g": 20,
"b": 123
},
"hsl": {
"h": 253.398,
"s": 72.028,
"l": 28.039
},
"oklch": {
"l": 0.30828,
"c": 0.15824,
"h": 282.1
},
"luminance": 0.02444
}Semantic roles & 50–950 ramp
primary
#2B147B
secondary
#96B13A
accent
#EF39C6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F