#3E1A68#3E1A68

#3E1A68 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.8% C 0.129 H 300.2°. Best body text is #FFFFFF at 13.53:1 contrast (WCAG AA passes).

Color values

HEX#3E1A68
RGBrgb(62, 26, 104)
HSLhsl(268, 60%, 25%)
HSVhsv(268, 75%, 41%)
CMYKcmyk(40.4%, 75%, 0%, 59.2%)
CIE-LABlab(19.07, 34.36, -38.95)
CIE-LCHlch(19.07, 51.94, 311.42°)
OKLaboklab(31.76% 0.0646 -0.1111)
OKLCHoklch(31.76% 0.129 300.2)
XYZxyz(4.8541, 2.7624, 13.3715)
Luminance0.0276 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1A68 #44681A
analogous
#1A1D68 #3E1A68 #651A68
triadic
#3E1A68 #683E1A #1A683E
tetradic
#3E1A68 #681A1D #44681A #1A6865
square
#3E1A68 #681A1D #44681A #1A6865
split-complementary
#3E1A68 #68651A #1D681A
monochromatic
#0F0618 #210E37 #3E1A68 #5B2699 #7832CA

Accessibility & contrast

On white

13.53
#3E1A68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#3E1A68 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1A68
13.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1A68#FFFFFF#000000##FFFFFF
##3E1A681.0013.531.5513.53
#FFFFFF13.531.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.531.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3e1a68;
/* rgb */ color: rgb(62, 26, 104);
/* oklch */ color: oklch(31.8% 0.129 300.2);
Tailwind
colors: {
  custom: {
    50: '#785a94',
    500: '#3e1a68',
    950: '#000000',
  },
}
SCSS
$custom: #3e1a68;
$custom-light: #785a94;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1a68",
  "rgb": {
    "r": 62,
    "g": 26,
    "b": 104
  },
  "hsl": {
    "h": 267.692,
    "s": 60,
    "l": 25.49
  },
  "oklch": {
    "l": 0.31756,
    "c": 0.12854,
    "h": 300.2
  },
  "luminance": 0.02762
}

Semantic roles & 50–950 ramp

primary
#3E1A68
secondary
#729D40
accent
#E3459A
background
#F7F5F9
surface
#EEE9F1
border
#C9C5CB
text
#09040D
muted
#7B797E

Preview Lab

Preview with #3E1A68

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

Preview Lab → · Contrast checker → · Palette generator →

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