#2D137C#2D137C
#2D137C is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.0% C 0.160 H 283.3°. Best body text is #FFFFFF at 14.04:1 contrast (WCAG AA passes).
Color values
| HEX | #2D137C |
|---|---|
| RGB | rgb(45, 19, 124) |
| HSL | hsl(255, 73%, 28%) |
| HSV | hsv(255, 85%, 49%) |
| CMYK | cmyk(63.7%, 84.7%, 0%, 51.4%) |
| CIE-LAB | lab(17.82, 40.97, -54.00) |
| CIE-LCH | lch(17.82, 67.78, 307.18°) |
| OKLab | oklab(31.02% 0.0367 -0.1557) |
| OKLCH | oklch(31.02% 0.16 283.3) |
| XYZ | xyz(4.9520, 2.4785, 19.2823) |
| Luminance | 0.0248 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.87
Midnight Blue
#191970
ΔE00 3.77
Royal
#0C1793
ΔE00 4.40
Navy
#000080
ΔE00 4.46
Deep Blue
#040273
ΔE00 4.57
Darkblue
#00008B
ΔE00 4.60
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D137C #627C13
analogous
#132D7C #2D137C #61137C
triadic
#2D137C #7C2D13 #137C2D
tetradic
#2D137C #7C132D #627C13 #137C61
square
#2D137C #7C132D #627C13 #137C61
split-complementary
#2D137C #7C6113 #2D7C13
monochromatic
#0A041B #1A0B47 #2D137C #401BB1 #572BDF
Accessibility & contrast
On white
14.04
#2D137C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.50
#2D137C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D137C
14.04:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D137C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D137C | 1.00 | 14.04 | 1.50 | 14.04 |
| #FFFFFF | 14.04 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.50 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.04 | 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: #2d137c; /* rgb */ color: rgb(45, 19, 124); /* oklch */ color: oklch(31.0% 0.160 283.3);
Tailwind
colors: {
custom: {
50: '#7256a3',
500: '#2d137c',
950: '#000000',
},
}SCSS
$custom: #2d137c; $custom-light: #7256a3; $custom-dark: #000000;
JSON
{
"hex": "#2d137c",
"rgb": {
"r": 45,
"g": 19,
"b": 124
},
"hsl": {
"h": 254.857,
"s": 73.427,
"l": 28.039
},
"oklch": {
"l": 0.31021,
"c": 0.15998,
"h": 283.3
},
"luminance": 0.02479
}Semantic roles & 50–950 ramp
primary
#2D137C
secondary
#94B239
accent
#F038C2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F