#3E2496#3E2496

#3E2496 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.4% C 0.173 H 284.8°. Best body text is #FFFFFF at 11.07:1 contrast (WCAG AA passes).

Color values

HEX#3E2496
RGBrgb(62, 36, 150)
HSLhsl(254, 61%, 36%)
HSVhsv(254, 76%, 59%)
CMYKcmyk(58.7%, 76%, 0%, 41.2%)
CIE-LABlab(25.22, 42.54, -58.03)
CIE-LCHlch(25.22, 71.95, 306.24°)
OKLaboklab(37.42% 0.0443 -0.1671)
OKLCHoklch(37.42% 0.173 284.8)
XYZxyz(8.1208, 4.4874, 29.2865)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2496 #7C9624
analogous
#244396 #3E2496 #772496
triadic
#3E2496 #963E24 #24963E
tetradic
#3E2496 #962443 #7C9624 #249677
square
#3E2496 #962443 #7C9624 #249677
split-complementary
#3E2496 #967724 #439624
monochromatic
#150C33 #2A1865 #3E2496 #5230C7 #795CD8

Accessibility & contrast

On white

11.07
#3E2496 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#3E2496 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2496
11.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2496#FFFFFF#000000##FFFFFF
##3E24961.0011.071.9011.07
#FFFFFF11.071.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F99
Deuteranopia (green-blind)
#003894
Tritanopia (blue-blind)
#0F445B
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3e2496;
/* rgb */ color: rgb(62, 36, 150);
/* oklch */ color: oklch(37.4% 0.173 284.8);
Tailwind
colors: {
  custom: {
    50: '#7e62b6',
    500: '#3e2496',
    950: '#000000',
  },
}
SCSS
$custom: #3e2496;
$custom-light: #7e62b6;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2496",
  "rgb": {
    "r": 62,
    "g": 36,
    "b": 150
  },
  "hsl": {
    "h": 253.684,
    "s": 61.29,
    "l": 36.471
  },
  "oklch": {
    "l": 0.37423,
    "c": 0.17291,
    "h": 284.8
  },
  "luminance": 0.04488
}

Semantic roles & 50–950 ramp

primary
#3E2496
secondary
#A6BD59
accent
#E443C0
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3E2496

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

Preview Lab → · Contrast checker → · Palette generator →

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