#3E1A6E#3E1A6E

#3E1A6E is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.3% C 0.136 H 297.8°. Best body text is #FFFFFF at 13.31:1 contrast (WCAG AA passes).

Color values

HEX#3E1A6E
RGBrgb(62, 26, 110)
HSLhsl(266, 62%, 27%)
HSVhsv(266, 76%, 43%)
CMYKcmyk(43.6%, 76.4%, 0%, 56.9%)
CIE-LABlab(19.59, 36.03, -42.01)
CIE-LCHlch(19.59, 55.34, 310.62°)
OKLaboklab(32.29% 0.0633 -0.1201)
OKLCHoklch(32.29% 0.136 297.8)
XYZxyz(5.1697, 2.8886, 15.0340)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1A6E #4A6E1A
analogous
#1A206E #3E1A6E #681A6E
triadic
#3E1A6E #6E3E1A #1A6E3E
tetradic
#3E1A6E #6E1A20 #4A6E1A #1A6E68
square
#3E1A6E #6E1A20 #4A6E1A #1A6E68
split-complementary
#3E1A6E #6E681A #206E1A
monochromatic
#0E0619 #220E3D #3E1A6E #5A26A0 #7634CF

Accessibility & contrast

On white

13.31
#3E1A6E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#3E1A6E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1A6E
13.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1A6E#FFFFFF#000000##FFFFFF
##3E1A6E1.0013.311.5813.31
#FFFFFF13.311.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003070
Deuteranopia (green-blind)
#002E6C
Tritanopia (blue-blind)
#322F42
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #3e1a6e;
/* rgb */ color: rgb(62, 26, 110);
/* oklch */ color: oklch(32.3% 0.136 297.8);
Tailwind
colors: {
  custom: {
    50: '#785a98',
    500: '#3e1a6e',
    950: '#000000',
  },
}
SCSS
$custom: #3e1a6e;
$custom-light: #785a98;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1a6e",
  "rgb": {
    "r": 62,
    "g": 26,
    "b": 110
  },
  "hsl": {
    "h": 265.714,
    "s": 61.765,
    "l": 26.667
  },
  "oklch": {
    "l": 0.32293,
    "c": 0.13576,
    "h": 297.8
  },
  "luminance": 0.02889
}

Semantic roles & 50–950 ramp

primary
#3E1A6E
secondary
#79A341
accent
#E5439F
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #3E1A6E

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

Preview Lab → · Contrast checker → · Palette generator →

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