#2D137F#2D137F
#2D137F is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.4% C 0.164 H 282.6°. Best body text is #FFFFFF at 13.90:1 contrast (WCAG AA passes).
Color values
| HEX | #2D137F |
|---|---|
| RGB | rgb(45, 19, 127) |
| HSL | hsl(254, 74%, 29%) |
| HSV | hsv(254, 85%, 50%) |
| CMYK | cmyk(64.6%, 85%, 0%, 50.2%) |
| CIE-LAB | lab(18.17, 41.86, -55.34) |
| CIE-LCH | lch(18.17, 69.39, 307.10°) |
| OKLab | oklab(31.36% 0.0356 -0.1596) |
| OKLCH | oklch(31.36% 0.164 282.6) |
| XYZ | xyz(5.1446, 2.5556, 20.2967) |
| Luminance | 0.0256 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.76
Midnight Blue
#191970
ΔE00 4.00
Royal
#0C1793
ΔE00 4.03
Darkblue
#00008B
ΔE00 4.36
Navy
#000080
ΔE00 4.37
Deep Blue
#040273
ΔE00 4.67
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D137F #657F13
analogous
#132F7F #2D137F #63137F
triadic
#2D137F #7F2D13 #137F2D
tetradic
#2D137F #7F132F #657F13 #137F63
square
#2D137F #7F132F #657F13 #137F63
split-complementary
#2D137F #7F6313 #2F7F13
monochromatic
#09041B #1A0B4A #2D137F #401BB4 #582DE0
Accessibility & contrast
On white
13.90
#2D137F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.51
#2D137F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D137F
13.90:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D137F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D137F | 1.00 | 13.90 | 1.51 | 13.90 |
| #FFFFFF | 13.90 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.51 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.90 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003082
Deuteranopia (green-blind)
#00297D
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #2d137f; /* rgb */ color: rgb(45, 19, 127); /* oklch */ color: oklch(31.4% 0.164 282.6);
Tailwind
colors: {
custom: {
50: '#7256a5',
500: '#2d137f',
950: '#000000',
},
}SCSS
$custom: #2d137f; $custom-light: #7256a5; $custom-dark: #000000;
JSON
{
"hex": "#2d137f",
"rgb": {
"r": 45,
"g": 19,
"b": 127
},
"hsl": {
"h": 254.444,
"s": 73.973,
"l": 28.627
},
"oklch": {
"l": 0.31363,
"c": 0.16354,
"h": 282.6
},
"luminance": 0.02556
}Semantic roles & 50–950 ramp
primary
#2D137F
secondary
#97B439
accent
#F137C4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F