#2D147F#2D147F
#2D147F is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.5% C 0.163 H 282.4°. Best body text is #FFFFFF at 13.83:1 contrast (WCAG AA passes).
Color values
| HEX | #2D147F |
|---|---|
| RGB | rgb(45, 20, 127) |
| HSL | hsl(254, 73%, 29%) |
| HSV | hsv(254, 84%, 50%) |
| CMYK | cmyk(64.6%, 84.3%, 0%, 50.2%) |
| CIE-LAB | lab(18.32, 41.41, -55.09) |
| CIE-LCH | lch(18.32, 68.91, 306.93°) |
| OKLab | oklab(31.47% 0.0351 -0.1589) |
| OKLCH | oklch(31.47% 0.163 282.4) |
| XYZ | xyz(5.1619, 2.5901, 20.3025) |
| Luminance | 0.0259 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.91
Midnight Blue
#191970
ΔE00 3.91
Royal
#0C1793
ΔE00 3.99
Darkblue
#00008B
ΔE00 4.47
Navy
#000080
ΔE00 4.49
Deep Blue
#040273
ΔE00 4.77
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D147F #667F14
analogous
#14317F #2D147F #63147F
triadic
#2D147F #7F2D14 #147F2D
tetradic
#2D147F #7F1431 #667F14 #147F63
square
#2D147F #7F1431 #667F14 #147F63
split-complementary
#2D147F #7F6314 #317F14
monochromatic
#09041A #1A0C4A #2D147F #401CB4 #582FDE
Accessibility & contrast
On white
13.83
#2D147F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.52
#2D147F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D147F
13.83:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D147F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D147F | 1.00 | 13.83 | 1.52 | 13.83 |
| #FFFFFF | 13.83 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.52 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.83 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003082
Deuteranopia (green-blind)
#00297D
Tritanopia (blue-blind)
#00354B
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #2d147f; /* rgb */ color: rgb(45, 20, 127); /* oklch */ color: oklch(31.5% 0.163 282.4);
Tailwind
colors: {
custom: {
50: '#7256a5',
500: '#2d147f',
950: '#000000',
},
}SCSS
$custom: #2d147f; $custom-light: #7256a5; $custom-dark: #000000;
JSON
{
"hex": "#2d147f",
"rgb": {
"r": 45,
"g": 20,
"b": 127
},
"hsl": {
"h": 254.019,
"s": 72.789,
"l": 28.824
},
"oklch": {
"l": 0.31468,
"c": 0.16271,
"h": 282.4
},
"luminance": 0.02591
}Semantic roles & 50–950 ramp
primary
#2D147F
secondary
#98B43B
accent
#EF38C5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F