#2C137F#2C137F
#2C137F is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.3% C 0.164 H 282.0°. Best body text is #FFFFFF at 13.94:1 contrast (WCAG AA passes).
Color values
| HEX | #2C137F |
|---|---|
| RGB | rgb(44, 19, 127) |
| HSL | hsl(254, 74%, 29%) |
| HSV | hsv(254, 85%, 50%) |
| CMYK | cmyk(65.4%, 85%, 0%, 50.2%) |
| CIE-LAB | lab(18.07, 41.76, -55.51) |
| CIE-LCH | lch(18.07, 69.46, 306.95°) |
| OKLab | oklab(31.27% 0.034 -0.1601) |
| OKLCH | oklch(31.27% 0.164 282) |
| XYZ | xyz(5.1011, 2.5331, 20.2947) |
| Luminance | 0.0253 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.84
Midnight Blue
#191970
ΔE00 3.92
Royal
#0C1793
ΔE00 3.94
Navy
#000080
ΔE00 4.27
Darkblue
#00008B
ΔE00 4.28
Deep Blue
#040273
ΔE00 4.58
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C137F #667F13
analogous
#13307F #2C137F #62137F
triadic
#2C137F #7F2C13 #137F2C
tetradic
#2C137F #7F1330 #667F13 #137F62
square
#2C137F #7F1330 #667F13 #137F62
split-complementary
#2C137F #7F6213 #307F13
monochromatic
#09041B #1A0B4A #2C137F #3E1BB4 #562DE0
Accessibility & contrast
On white
13.94
#2C137F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.51
#2C137F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C137F
13.94:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C137F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C137F | 1.00 | 13.94 | 1.51 | 13.94 |
| #FFFFFF | 13.94 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.51 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.94 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003082
Deuteranopia (green-blind)
#00287D
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #2c137f; /* rgb */ color: rgb(44, 19, 127); /* oklch */ color: oklch(31.3% 0.164 282.0);
Tailwind
colors: {
custom: {
50: '#7256a5',
500: '#2c137f',
950: '#000000',
},
}SCSS
$custom: #2c137f; $custom-light: #7256a5; $custom-dark: #000000;
JSON
{
"hex": "#2c137f",
"rgb": {
"r": 44,
"g": 19,
"b": 127
},
"hsl": {
"h": 253.889,
"s": 73.973,
"l": 28.627
},
"oklch": {
"l": 0.31269,
"c": 0.1637,
"h": 282
},
"luminance": 0.02534
}Semantic roles & 50–950 ramp
primary
#2C137F
secondary
#98B439
accent
#F137C6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F