#3E2495#3E2495

#3E2495 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.3% C 0.172 H 285.0°. Best body text is #FFFFFF at 11.10:1 contrast (WCAG AA passes).

Color values

HEX#3E2495
RGBrgb(62, 36, 149)
HSLhsl(254, 61%, 36%)
HSVhsv(254, 76%, 58%)
CMYKcmyk(58.4%, 75.8%, 0%, 41.6%)
CIE-LABlab(25.12, 42.24, -57.58)
CIE-LCHlch(25.12, 71.41, 306.26°)
OKLaboklab(37.32% 0.0445 -0.1658)
OKLCHoklch(37.32% 0.172 285)
XYZxyz(8.0406, 4.4553, 28.8642)
Luminance0.0446 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2495 #7B9524
analogous
#244395 #3E2495 #772495
triadic
#3E2495 #953E24 #24953E
tetradic
#3E2495 #952443 #7B9524 #249577
square
#3E2495 #952443 #7B9524 #249577
split-complementary
#3E2495 #957724 #439524
monochromatic
#150C32 #291864 #3E2495 #5330C6 #785CD8

Accessibility & contrast

On white

11.10
#3E2495 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#3E2495 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2495
11.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2495#FFFFFF#000000##FFFFFF
##3E24951.0011.101.8911.10
#FFFFFF11.101.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F98
Deuteranopia (green-blind)
#003893
Tritanopia (blue-blind)
#11445B
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3e2495;
/* rgb */ color: rgb(62, 36, 149);
/* oklch */ color: oklch(37.3% 0.172 285.0);
Tailwind
colors: {
  custom: {
    50: '#7e62b5',
    500: '#3e2495',
    950: '#000000',
  },
}
SCSS
$custom: #3e2495;
$custom-light: #7e62b5;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2495",
  "rgb": {
    "r": 62,
    "g": 36,
    "b": 149
  },
  "hsl": {
    "h": 253.805,
    "s": 61.081,
    "l": 36.275
  },
  "oklch": {
    "l": 0.37324,
    "c": 0.17169,
    "h": 285
  },
  "luminance": 0.04456
}

Semantic roles & 50–950 ramp

primary
#3E2495
secondary
#A5BC59
accent
#E444BF
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3E2495

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

Preview Lab → · Contrast checker → · Palette generator →

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