#2D187C#2D187C
#2D187C is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.6% C 0.155 H 282.5°. Best body text is #FFFFFF at 13.70:1 contrast (WCAG AA passes).
Color values
| HEX | #2D187C |
|---|---|
| RGB | rgb(45, 24, 124) |
| HSL | hsl(253, 68%, 29%) |
| HSV | hsv(253, 81%, 49%) |
| CMYK | cmyk(63.7%, 80.6%, 0%, 51.4%) |
| CIE-LAB | lab(18.65, 38.55, -52.63) |
| CIE-LCH | lch(18.65, 65.24, 306.22°) |
| OKLab | oklab(31.6% 0.0337 -0.1518) |
| OKLCH | oklch(31.6% 0.155 282.5) |
| XYZ | xyz(5.0458, 2.6660, 19.3136) |
| Luminance | 0.0267 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.29
Indigo (survey)
#380282
ΔE00 3.74
Royal
#0C1793
ΔE00 4.32
Dark Royal Blue
#02066F
ΔE00 5.09
Navy
#000080
ΔE00 5.15
Deep Blue
#040273
ΔE00 5.20
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D187C #677C18
analogous
#18357C #2D187C #5F187C
triadic
#2D187C #7C2D18 #187C2D
tetradic
#2D187C #7C1835 #677C18 #187C5F
square
#2D187C #7C1835 #677C18 #187C5F
split-complementary
#2D187C #7C5F18 #357C18
monochromatic
#09051A #1A0E49 #2D187C #4022AF #5836D8
Accessibility & contrast
On white
13.70
#2D187C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.53
#2D187C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D187C
13.70:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D187C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D187C | 1.00 | 13.70 | 1.53 | 13.70 |
| #FFFFFF | 13.70 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.53 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.70 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00317F
Deuteranopia (green-blind)
#002A7A
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #2d187c; /* rgb */ color: rgb(45, 24, 124); /* oklch */ color: oklch(31.6% 0.155 282.5);
Tailwind
colors: {
custom: {
50: '#7158a3',
500: '#2d187c',
950: '#000000',
},
}SCSS
$custom: #2d187c; $custom-light: #7158a3; $custom-dark: #000000;
JSON
{
"hex": "#2d187c",
"rgb": {
"r": 45,
"g": 24,
"b": 124
},
"hsl": {
"h": 252.6,
"s": 67.568,
"l": 29.02
},
"oklch": {
"l": 0.31599,
"c": 0.15547,
"h": 282.5
},
"luminance": 0.02666
}Semantic roles & 50–950 ramp
primary
#2D187C
secondary
#99B13F
accent
#EA3DC6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F