#2D146C#2D146C
#2D146C is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.4% C 0.140 H 287.3°. Best body text is #FFFFFF at 14.70:1 contrast (WCAG AA passes).
Color values
| HEX | #2D146C |
|---|---|
| RGB | rgb(45, 20, 108) |
| HSL | hsl(257, 69%, 25%) |
| HSV | hsv(257, 81%, 42%) |
| CMYK | cmyk(58.3%, 81.5%, 0%, 57.6%) |
| CIE-LAB | lab(16.21, 35.64, -46.33) |
| CIE-LCH | lch(16.21, 58.45, 307.57°) |
| OKLab | oklab(29.37% 0.0415 -0.1333) |
| OKLCH | oklch(29.37% 0.14 287.3) |
| XYZ | xyz(4.0383, 2.1407, 14.3849) |
| Luminance | 0.0214 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.44
Dark Indigo
#1F0954
ΔE00 4.51
Indigo (survey)
#380282
ΔE00 4.64
Dark Royal Blue
#02066F
ΔE00 4.82
Darkblue (survey)
#030764
ΔE00 4.88
Deep Blue
#040273
ΔE00 5.15
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D146C #536C14
analogous
#14276C #2D146C #59146C
triadic
#2D146C #6C2D14 #146C2D
tetradic
#2D146C #6C1427 #536C14 #146C59
square
#2D146C #6C1427 #536C14 #146C59
split-complementary
#2D146C #6C5914 #276C14
monochromatic
#0B051A #170A38 #2D146C #431EA0 #5827D3
Accessibility & contrast
On white
14.70
#2D146C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.43
#2D146C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D146C
14.70:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D146C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D146C | 1.00 | 14.70 | 1.43 | 14.70 |
| #FFFFFF | 14.70 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.43 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.70 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002A6E
Deuteranopia (green-blind)
#00266A
Tritanopia (blue-blind)
#112D40
Achromatopsia (no color)
#282828
Design tokens & code
CSS
--color: #2d146c; /* rgb */ color: rgb(45, 20, 108); /* oklch */ color: oklch(29.4% 0.140 287.3);
Tailwind
colors: {
custom: {
50: '#6e5597',
500: '#2d146c',
950: '#000000',
},
}SCSS
$custom: #2d146c; $custom-light: #6e5597; $custom-dark: #000000;
JSON
{
"hex": "#2d146c",
"rgb": {
"r": 45,
"g": 20,
"b": 108
},
"hsl": {
"h": 257.045,
"s": 68.75,
"l": 25.098
},
"oklch": {
"l": 0.29373,
"c": 0.13966,
"h": 287.3
},
"luminance": 0.02141
}Semantic roles & 50–950 ramp
primary
#2D146C
secondary
#85A339
accent
#EC3CBA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E