#2B147E#2B147E
#2B147E is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.2% C 0.162 H 281.5°. Best body text is #FFFFFF at 13.96:1 contrast (WCAG AA passes).
Color values
| HEX | #2B147E |
|---|---|
| RGB | rgb(43, 20, 126) |
| HSL | hsl(253, 73%, 29%) |
| HSV | hsv(253, 84%, 49%) |
| CMYK | cmyk(65.9%, 84.1%, 0%, 50.6%) |
| CIE-LAB | lab(18.01, 40.90, -54.97) |
| CIE-LCH | lch(18.01, 68.52, 306.65°) |
| OKLab | oklab(31.17% 0.0322 -0.1586) |
| OKLCH | oklch(31.17% 0.162 281.5) |
| XYZ | xyz(5.0111, 2.5199, 19.9569) |
| Luminance | 0.0252 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.11
Midnight Blue
#191970
ΔE00 3.64
Royal
#0C1793
ΔE00 3.94
Navy
#000080
ΔE00 4.33
Darkblue
#00008B
ΔE00 4.39
Deep Blue
#040273
ΔE00 4.56
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B147E #677E14
analogous
#14327E #2B147E #60147E
triadic
#2B147E #7E2B14 #147E2B
tetradic
#2B147E #7E1432 #677E14 #147E60
square
#2B147E #7E1432 #677E14 #147E60
split-complementary
#2B147E #7E6014 #327E14
monochromatic
#09041A #190C49 #2B147E #3D1CB3 #552EDE
Accessibility & contrast
On white
13.96
#2B147E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.50
#2B147E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B147E
13.96:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B147E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B147E | 1.00 | 13.96 | 1.50 | 13.96 |
| #FFFFFF | 13.96 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.50 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.96 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F81
Deuteranopia (green-blind)
#00287C
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #2b147e; /* rgb */ color: rgb(43, 20, 126); /* oklch */ color: oklch(31.2% 0.162 281.5);
Tailwind
colors: {
custom: {
50: '#7156a5',
500: '#2b147e',
950: '#000000',
},
}SCSS
$custom: #2b147e; $custom-light: #7156a5; $custom-dark: #000000;
JSON
{
"hex": "#2b147e",
"rgb": {
"r": 43,
"g": 20,
"b": 126
},
"hsl": {
"h": 253.019,
"s": 72.603,
"l": 28.627
},
"oklch": {
"l": 0.3117,
"c": 0.16185,
"h": 281.5
},
"luminance": 0.0252
}Semantic roles & 50–950 ramp
primary
#2B147E
secondary
#99B33A
accent
#EF38C8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F