#3E1E72#3E1E72

#3E1E72 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.2% C 0.136 H 295.5°. Best body text is #FFFFFF at 12.86:1 contrast (WCAG AA passes).

Color values

HEX#3E1E72
RGBrgb(62, 30, 114)
HSLhsl(263, 58%, 28%)
HSVhsv(263, 74%, 45%)
CMYKcmyk(45.6%, 73.7%, 0%, 55.3%)
CIE-LABlab(20.70, 35.04, -42.78)
CIE-LCHlch(20.70, 55.30, 309.32°)
OKLaboklab(33.19% 0.0583 -0.1224)
OKLCHoklch(33.19% 0.136 295.5)
XYZxyz(5.4873, 3.1675, 16.2386)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1E72 #52721E
analogous
#1E2872 #3E1E72 #681E72
triadic
#3E1E72 #723E1E #1E723E
tetradic
#3E1E72 #721E28 #52721E #1E7268
square
#3E1E72 #721E28 #52721E #1E7268
split-complementary
#3E1E72 #72681E #28721E
monochromatic
#0D0618 #241142 #3E1E72 #582BA2 #743ECC

Accessibility & contrast

On white

12.86
#3E1E72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3E1E72
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1E72#FFFFFF#000000##FFFFFF
##3E1E721.0012.861.6312.86
#FFFFFF12.861.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003274
Deuteranopia (green-blind)
#003170
Tritanopia (blue-blind)
#303345
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3e1e72;
/* rgb */ color: rgb(62, 30, 114);
/* oklch */ color: oklch(33.2% 0.136 295.5);
Tailwind
colors: {
  custom: {
    50: '#795d9b',
    500: '#3e1e72',
    950: '#000000',
  },
}
SCSS
$custom: #3e1e72;
$custom-light: #795d9b;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1e72",
  "rgb": {
    "r": 62,
    "g": 30,
    "b": 114
  },
  "hsl": {
    "h": 262.857,
    "s": 58.333,
    "l": 28.235
  },
  "oklch": {
    "l": 0.33191,
    "c": 0.13555,
    "h": 295.5
  },
  "luminance": 0.03168
}

Semantic roles & 50–950 ramp

primary
#3E1E72
secondary
#81A646
accent
#E246A6
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3E1E72

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

Preview Lab → · Contrast checker → · Palette generator →

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