#3E1B59#3E1B59

#3E1B59 is a dark, moderate violet. Relative luminance 0.025; OKLCH L 30.6% C 0.109 H 307.1°. Best body text is #FFFFFF at 13.95:1 contrast (WCAG AA passes).

Color values

HEX#3E1B59
RGBrgb(62, 27, 89)
HSLhsl(274, 53%, 23%)
HSVhsv(274, 70%, 35%)
CMYKcmyk(30.3%, 69.7%, 0%, 65.1%)
CIE-LABlab(18.05, 29.74, -30.67)
CIE-LCHlch(18.05, 42.72, 314.12°)
OKLaboklab(30.65% 0.0655 -0.0868)
OKLCHoklch(30.65% 0.109 307.1)
XYZxyz(4.1813, 2.5293, 9.7172)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1B59 #36591B
analogous
#1F1B59 #3E1B59 #591B55
triadic
#3E1B59 #593E1B #1B593E
tetradic
#3E1B59 #591F1B #36591B #1B5559
square
#3E1B59 #591F1B #36591B #1B5559
split-complementary
#3E1B59 #55591B #1B591F
monochromatic
#100717 #1D0D2A #3E1B59 #5F2988 #7F37B7

Accessibility & contrast

On white

13.95
#3E1B59 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#3E1B59 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1B59
13.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1B59#FFFFFF#000000##FFFFFF
##3E1B591.0013.951.5113.95
#FFFFFF13.951.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B5B
Deuteranopia (green-blind)
#0E2C58
Tritanopia (blue-blind)
#3A2837
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #3e1b59;
/* rgb */ color: rgb(62, 27, 89);
/* oklch */ color: oklch(30.6% 0.109 307.1);
Tailwind
colors: {
  custom: {
    50: '#765a88',
    500: '#3e1b59',
    950: '#000000',
  },
}
SCSS
$custom: #3e1b59;
$custom-light: #765a88;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1b59",
  "rgb": {
    "r": 62,
    "g": 27,
    "b": 89
  },
  "hsl": {
    "h": 273.871,
    "s": 53.448,
    "l": 22.745
  },
  "oklch": {
    "l": 0.30647,
    "c": 0.10874,
    "h": 307.1
  },
  "luminance": 0.02529
}

Semantic roles & 50–950 ramp

primary
#3E1B59
secondary
#638F41
accent
#DD4B8A
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09040B
muted
#7B797C

Preview Lab

Preview with #3E1B59

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

Preview Lab → · Contrast checker → · Palette generator →

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