#3E177D#3E177D

#3E177D is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.4% C 0.157 H 293.2°. Best body text is #FFFFFF at 12.93:1 contrast (WCAG AA passes).

Color values

HEX#3E177D
RGBrgb(62, 23, 125)
HSLhsl(263, 69%, 29%)
HSVhsv(263, 82%, 49%)
CMYKcmyk(50.4%, 81.6%, 0%, 51%)
CIE-LABlab(20.51, 41.65, -50.14)
CIE-LCHlch(20.51, 65.19, 309.72°)
OKLaboklab(33.37% 0.0617 -0.1439)
OKLCHoklch(33.37% 0.157 293.2)
XYZxyz(5.9936, 3.1174, 19.6840)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E177D #567D17
analogous
#17237D #3E177D #71177D
triadic
#3E177D #7D3E17 #177D3E
tetradic
#3E177D #7D1723 #567D17 #177D71
square
#3E177D #7D1723 #567D17 #177D71
split-complementary
#3E177D #7D7117 #237D17
monochromatic
#0D051A #240D49 #3E177D #5821B1 #7435DA

Accessibility & contrast

On white

12.93
#3E177D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#3E177D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E177D
12.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E177D#FFFFFF#000000##FFFFFF
##3E177D1.0012.931.6212.93
#FFFFFF12.931.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003380
Deuteranopia (green-blind)
#002F7B
Tritanopia (blue-blind)
#2A344A
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3e177d;
/* rgb */ color: rgb(62, 23, 125);
/* oklch */ color: oklch(33.4% 0.157 293.2);
Tailwind
colors: {
  custom: {
    50: '#7b59a4',
    500: '#3e177d',
    950: '#000000',
  },
}
SCSS
$custom: #3e177d;
$custom-light: #7b59a4;
$custom-dark: #000000;
JSON
{
  "hex": "#3e177d",
  "rgb": {
    "r": 62,
    "g": 23,
    "b": 125
  },
  "hsl": {
    "h": 262.941,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.33371,
    "c": 0.15662,
    "h": 293.2
  },
  "luminance": 0.03118
}

Semantic roles & 50–950 ramp

primary
#3E177D
secondary
#86B23E
accent
#EC3CA9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3E177D

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#3E177D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva