#3E187D#3E187D

#3E187D is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.5% C 0.156 H 293.1°. Best body text is #FFFFFF at 12.87:1 contrast (WCAG AA passes).

Color values

HEX#3E187D
RGBrgb(62, 24, 125)
HSLhsl(263, 68%, 29%)
HSVhsv(263, 81%, 49%)
CMYKcmyk(50.4%, 80.8%, 0%, 51%)
CIE-LABlab(20.67, 41.20, -49.88)
CIE-LCHlch(20.67, 64.70, 309.55°)
OKLaboklab(33.48% 0.0609 -0.1432)
OKLCHoklch(33.48% 0.156 293.1)
XYZxyz(6.0139, 3.1579, 19.6907)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E187D #577D18
analogous
#18257D #3E187D #71187D
triadic
#3E187D #7D3E18 #187D3E
tetradic
#3E187D #7D1825 #577D18 #187D71
square
#3E187D #7D1825 #577D18 #187D71
split-complementary
#3E187D #7D7118 #257D18
monochromatic
#0D051A #250E4A #3E187D #5722B0 #7437D9

Accessibility & contrast

On white

12.87
#3E187D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#3E187D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E187D
12.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E187D#FFFFFF#000000##FFFFFF
##3E187D1.0012.871.6312.87
#FFFFFF12.871.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003380
Deuteranopia (green-blind)
#00307B
Tritanopia (blue-blind)
#2A354A
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3e187d;
/* rgb */ color: rgb(62, 24, 125);
/* oklch */ color: oklch(33.5% 0.156 293.1);
Tailwind
colors: {
  custom: {
    50: '#7b5aa4',
    500: '#3e187d',
    950: '#000000',
  },
}
SCSS
$custom: #3e187d;
$custom-light: #7b5aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#3e187d",
  "rgb": {
    "r": 62,
    "g": 24,
    "b": 125
  },
  "hsl": {
    "h": 262.574,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.33481,
    "c": 0.15562,
    "h": 293.1
  },
  "luminance": 0.03158
}

Semantic roles & 50–950 ramp

primary
#3E187D
secondary
#87B23F
accent
#EB3DA9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3E187D

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

Preview Lab → · Contrast checker → · Palette generator →

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