#3E2096#3E2096

#3E2096 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.9% C 0.177 H 285.5°. Best body text is #FFFFFF at 11.34:1 contrast (WCAG AA passes).

Color values

HEX#3E2096
RGBrgb(62, 32, 150)
HSLhsl(255, 65%, 36%)
HSVhsv(255, 79%, 59%)
CMYKcmyk(58.7%, 78.7%, 0%, 41.2%)
CIE-LABlab(24.51, 44.57, -59.20)
CIE-LCHlch(24.51, 74.11, 306.98°)
OKLaboklab(36.92% 0.0472 -0.1705)
OKLCHoklch(36.92% 0.177 285.5)
XYZxyz(8.0065, 4.2587, 29.2484)
Luminance0.0426 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2096 #789620
analogous
#203D96 #3E2096 #792096
triadic
#3E2096 #963E20 #20963E
tetradic
#3E2096 #96203D #789620 #209679
square
#3E2096 #96203D #789620 #209679
split-complementary
#3E2096 #967920 #3D9620
monochromatic
#140A31 #291564 #3E2096 #532BC8 #7756DB

Accessibility & contrast

On white

11.34
#3E2096 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#3E2096 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2096
11.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2096#FFFFFF#000000##FFFFFF
##3E20961.0011.341.8511.34
#FFFFFF11.341.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D99
Deuteranopia (green-blind)
#003794
Tritanopia (blue-blind)
#0F425A
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3e2096;
/* rgb */ color: rgb(62, 32, 150);
/* oklch */ color: oklch(36.9% 0.177 285.5);
Tailwind
colors: {
  custom: {
    50: '#7e60b6',
    500: '#3e2096',
    950: '#000000',
  },
}
SCSS
$custom: #3e2096;
$custom-light: #7e60b6;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2096",
  "rgb": {
    "r": 62,
    "g": 32,
    "b": 150
  },
  "hsl": {
    "h": 255.254,
    "s": 64.835,
    "l": 35.686
  },
  "oklch": {
    "l": 0.36923,
    "c": 0.17694,
    "h": 285.5
  },
  "luminance": 0.04259
}

Semantic roles & 50–950 ramp

primary
#3E2096
secondary
#A3BE53
accent
#E840BD
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3E2096

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

Preview Lab → · Contrast checker → · Palette generator →

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