#2B147F#2B147F
#2B147F is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.3% C 0.163 H 281.3°. Best body text is #FFFFFF at 13.91:1 contrast (WCAG AA passes).
Color values
| HEX | #2B147F |
|---|---|
| RGB | rgb(43, 20, 127) |
| HSL | hsl(253, 73%, 29%) |
| HSV | hsv(253, 84%, 50%) |
| CMYK | cmyk(66.1%, 84.3%, 0%, 50.2%) |
| CIE-LAB | lab(18.12, 41.20, -55.42) |
| CIE-LCH | lch(18.12, 69.06, 306.63°) |
| OKLab | oklab(31.28% 0.0318 -0.1599) |
| OKLCH | oklch(31.28% 0.163 281.3) |
| XYZ | xyz(5.0760, 2.5458, 20.2985) |
| Luminance | 0.0255 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.08
Midnight Blue
#191970
ΔE00 3.73
Royal
#0C1793
ΔE00 3.81
Navy
#000080
ΔE00 4.31
Darkblue
#00008B
ΔE00 4.31
Deep Blue
#040273
ΔE00 4.60
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2B147F #687F14
analogous
#14337F #2B147F #61147F
triadic
#2B147F #7F2B14 #147F2B
tetradic
#2B147F #7F1433 #687F14 #147F61
square
#2B147F #7F1433 #687F14 #147F61
split-complementary
#2B147F #7F6114 #337F14
monochromatic
#09041A #190C4A #2B147F #3D1CB4 #552FDE
Accessibility & contrast
On white
13.91
#2B147F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.51
#2B147F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2B147F
13.91:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2B147F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2B147F | 1.00 | 13.91 | 1.51 | 13.91 |
| #FFFFFF | 13.91 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.51 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.91 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003082
Deuteranopia (green-blind)
#00287D
Tritanopia (blue-blind)
#00354B
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #2b147f; /* rgb */ color: rgb(43, 20, 127); /* oklch */ color: oklch(31.3% 0.163 281.3);
Tailwind
colors: {
custom: {
50: '#7156a5',
500: '#2b147f',
950: '#000000',
},
}SCSS
$custom: #2b147f; $custom-light: #7156a5; $custom-dark: #000000;
JSON
{
"hex": "#2b147f",
"rgb": {
"r": 43,
"g": 20,
"b": 127
},
"hsl": {
"h": 252.897,
"s": 72.789,
"l": 28.824
},
"oklch": {
"l": 0.31284,
"c": 0.16305,
"h": 281.3
},
"luminance": 0.02546
}Semantic roles & 50–950 ramp
primary
#2B147F
secondary
#9AB43B
accent
#EF38C8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F