#3E1F7D#3E1F7D

#3E1F7D is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.3% C 0.148 H 291.8°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).

Color values

HEX#3E1F7D
RGBrgb(62, 31, 125)
HSLhsl(260, 60%, 31%)
HSVhsv(260, 75%, 49%)
CMYKcmyk(50.4%, 75.2%, 0%, 51%)
CIE-LABlab(21.89, 37.72, -47.88)
CIE-LCHlch(21.89, 60.95, 308.23°)
OKLaboklab(34.34% 0.0548 -0.1374)
OKLCHoklch(34.34% 0.148 291.8)
XYZxyz(6.1772, 3.4845, 19.7452)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1F7D #5E7D1F
analogous
#1F2F7D #3E1F7D #6D1F7D
triadic
#3E1F7D #7D3E1F #1F7D3E
tetradic
#3E1F7D #7D1F2F #5E7D1F #1F7D6D
square
#3E1F7D #7D1F2F #5E7D1F #1F7D6D
split-complementary
#3E1F7D #7D6D1F #2F7D1F
monochromatic
#0D071B #26134C #3E1F7D #562BAE #7345D1

Accessibility & contrast

On white

12.37
#3E1F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#3E1F7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1F7D
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1F7D#FFFFFF#000000##FFFFFF
##3E1F7D1.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003680
Deuteranopia (green-blind)
#00327B
Tritanopia (blue-blind)
#2A384C
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3e1f7d;
/* rgb */ color: rgb(62, 31, 125);
/* oklch */ color: oklch(34.3% 0.148 291.8);
Tailwind
colors: {
  custom: {
    50: '#7a5ea3',
    500: '#3e1f7d',
    950: '#000000',
  },
}
SCSS
$custom: #3e1f7d;
$custom-light: #7a5ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1f7d",
  "rgb": {
    "r": 62,
    "g": 31,
    "b": 125
  },
  "hsl": {
    "h": 259.787,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.3434,
    "c": 0.1479,
    "h": 291.8
  },
  "luminance": 0.03485
}

Semantic roles & 50–950 ramp

primary
#3E1F7D
secondary
#8EB048
accent
#E344AF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3E1F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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