#3E1B68#3E1B68

#3E1B68 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.9% C 0.127 H 300.0°. Best body text is #FFFFFF at 13.45:1 contrast (WCAG AA passes).

Color values

HEX#3E1B68
RGBrgb(62, 27, 104)
HSLhsl(267, 59%, 26%)
HSVhsv(267, 74%, 41%)
CMYKcmyk(40.4%, 74%, 0%, 59.2%)
CIE-LABlab(19.26, 33.83, -38.64)
CIE-LCHlch(19.26, 51.36, 311.20°)
OKLaboklab(31.89% 0.0635 -0.1102)
OKLCHoklch(31.89% 0.127 300)
XYZxyz(4.8766, 2.8074, 13.3790)
Luminance0.0281 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1B68 #45681B
analogous
#1B1E68 #3E1B68 #641B68
triadic
#3E1B68 #683E1B #1B683E
tetradic
#3E1B68 #681B1E #45681B #1B6864
square
#3E1B68 #681B1E #45681B #1B6864
split-complementary
#3E1B68 #68641B #1E681B
monochromatic
#0E0618 #210E37 #3E1B68 #5B2899 #7834C9

Accessibility & contrast

On white

13.45
#3E1B68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#3E1B68 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1B68
13.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1B68#FFFFFF#000000##FFFFFF
##3E1B681.0013.451.5613.45
#FFFFFF13.451.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6A
Deuteranopia (green-blind)
#002E66
Tritanopia (blue-blind)
#342E3F
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #3e1b68;
/* rgb */ color: rgb(62, 27, 104);
/* oklch */ color: oklch(31.9% 0.127 300.0);
Tailwind
colors: {
  custom: {
    50: '#785a94',
    500: '#3e1b68',
    950: '#000000',
  },
}
SCSS
$custom: #3e1b68;
$custom-light: #785a94;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1b68",
  "rgb": {
    "r": 62,
    "g": 27,
    "b": 104
  },
  "hsl": {
    "h": 267.273,
    "s": 58.779,
    "l": 25.686
  },
  "oklch": {
    "l": 0.31891,
    "c": 0.12721,
    "h": 300
  },
  "luminance": 0.02807
}

Semantic roles & 50–950 ramp

primary
#3E1B68
secondary
#749D42
accent
#E2469B
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#09040D
muted
#7B797E

Preview Lab

Preview with #3E1B68

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

Preview Lab → · Contrast checker → · Palette generator →

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