#3E1F8D#3E1F8D

#3E1F8D is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.9% C 0.167 H 287.6°. Best body text is #FFFFFF at 11.76:1 contrast (WCAG AA passes).

Color values

HEX#3E1F8D
RGBrgb(62, 31, 141)
HSLhsl(257, 64%, 34%)
HSVhsv(257, 78%, 55%)
CMYKcmyk(56%, 78%, 0%, 44.7%)
CIE-LABlab(23.43, 42.42, -55.41)
CIE-LCHlch(23.43, 69.78, 307.44°)
OKLaboklab(35.89% 0.0506 -0.1594)
OKLCHoklch(35.89% 0.167 287.6)
XYZxyz(7.2829, 3.9268, 25.5683)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1F8D #6E8D1F
analogous
#1F378D #3E1F8D #751F8D
triadic
#3E1F8D #8D3E1F #1F8D3E
tetradic
#3E1F8D #8D1F37 #6E8D1F #1F8D75
square
#3E1F8D #8D1F37 #6E8D1F #1F8D75
split-complementary
#3E1F8D #8D751F #378D1F
monochromatic
#120929 #28145B #3E1F8D #542ABF #754ED8

Accessibility & contrast

On white

11.76
#3E1F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#3E1F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1F8D
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1F8D#FFFFFF#000000##FFFFFF
##3E1F8D1.0011.761.7911.76
#FFFFFF11.761.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A90
Deuteranopia (green-blind)
#00358B
Tritanopia (blue-blind)
#1C3E55
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3e1f8d;
/* rgb */ color: rgb(62, 31, 141);
/* oklch */ color: oklch(35.9% 0.167 287.6);
Tailwind
colors: {
  custom: {
    50: '#7d5faf',
    500: '#3e1f8d',
    950: '#000000',
  },
}
SCSS
$custom: #3e1f8d;
$custom-light: #7d5faf;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1f8d",
  "rgb": {
    "r": 62,
    "g": 31,
    "b": 141
  },
  "hsl": {
    "h": 256.909,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.35894,
    "c": 0.16726,
    "h": 287.6
  },
  "luminance": 0.03927
}

Semantic roles & 50–950 ramp

primary
#3E1F8D
secondary
#9CBB4D
accent
#E741B8
background
#F8F5FA
surface
#EFE9F5
border
#CAC5CF
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3E1F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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