#2D147C#2D147C
#2D147C is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.1% C 0.159 H 283.1°. Best body text is #FFFFFF at 13.98:1 contrast (WCAG AA passes).
Color values
| HEX | #2D147C |
|---|---|
| RGB | rgb(45, 20, 124) |
| HSL | hsl(254, 72%, 28%) |
| HSV | hsv(254, 84%, 49%) |
| CMYK | cmyk(63.7%, 83.9%, 0%, 51.4%) |
| CIE-LAB | lab(17.98, 40.51, -53.74) |
| CIE-LCH | lch(17.98, 67.30, 307.01°) |
| OKLab | oklab(31.13% 0.0361 -0.155) |
| OKLCH | oklch(31.13% 0.159 283.1) |
| XYZ | xyz(4.9693, 2.5131, 19.2881) |
| Luminance | 0.0251 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.03
Midnight Blue
#191970
ΔE00 3.66
Royal
#0C1793
ΔE00 4.37
Navy
#000080
ΔE00 4.58
Deep Blue
#040273
ΔE00 4.68
Dark Royal Blue
#02066F
ΔE00 4.69
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D147C #637C14
analogous
#142F7C #2D147C #61147C
triadic
#2D147C #7C2D14 #147C2D
tetradic
#2D147C #7C142F #637C14 #147C61
square
#2D147C #7C142F #637C14 #147C61
split-complementary
#2D147C #7C6114 #2F7C14
monochromatic
#0A041A #1A0B47 #2D147C #401DB1 #582DDD
Accessibility & contrast
On white
13.98
#2D147C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.50
#2D147C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D147C
13.98:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D147C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D147C | 1.00 | 13.98 | 1.50 | 13.98 |
| #FFFFFF | 13.98 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.50 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.98 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F7F
Deuteranopia (green-blind)
#00287A
Tritanopia (blue-blind)
#003449
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #2d147c; /* rgb */ color: rgb(45, 20, 124); /* oklch */ color: oklch(31.1% 0.159 283.1);
Tailwind
colors: {
custom: {
50: '#7256a3',
500: '#2d147c',
950: '#000000',
},
}SCSS
$custom: #2d147c; $custom-light: #7256a3; $custom-dark: #000000;
JSON
{
"hex": "#2d147c",
"rgb": {
"r": 45,
"g": 20,
"b": 124
},
"hsl": {
"h": 254.423,
"s": 72.222,
"l": 28.235
},
"oklch": {
"l": 0.31129,
"c": 0.15913,
"h": 283.1
},
"luminance": 0.02513
}Semantic roles & 50–950 ramp
primary
#2D147C
secondary
#95B23A
accent
#EF39C3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F