#3E2097#3E2097

#3E2097 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.0% C 0.178 H 285.3°. Best body text is #FFFFFF at 11.30:1 contrast (WCAG AA passes).

Color values

HEX#3E2097
RGBrgb(62, 32, 151)
HSLhsl(255, 65%, 36%)
HSVhsv(255, 79%, 59%)
CMYKcmyk(58.9%, 78.8%, 0%, 40.8%)
CIE-LABlab(24.61, 44.87, -59.65)
CIE-LCHlch(24.61, 74.64, 306.95°)
OKLaboklab(37.03% 0.0469 -0.1718)
OKLCHoklch(37.03% 0.178 285.3)
XYZxyz(8.0873, 4.2910, 29.6743)
Luminance0.0429 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2097 #799720
analogous
#203D97 #3E2097 #792097
triadic
#3E2097 #973E20 #20973E
tetradic
#3E2097 #97203D #799720 #209779
square
#3E2097 #97203D #799720 #209779
split-complementary
#3E2097 #977920 #3D9720
monochromatic
#150B32 #291564 #3E2097 #532BC9 #7856DB

Accessibility & contrast

On white

11.30
#3E2097 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#3E2097 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E2097
11.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E2097#FFFFFF#000000##FFFFFF
##3E20971.0011.301.8611.30
#FFFFFF11.301.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9A
Deuteranopia (green-blind)
#003795
Tritanopia (blue-blind)
#0D435B
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3e2097;
/* rgb */ color: rgb(62, 32, 151);
/* oklch */ color: oklch(37.0% 0.178 285.3);
Tailwind
colors: {
  custom: {
    50: '#7e60b7',
    500: '#3e2097',
    950: '#000000',
  },
}
SCSS
$custom: #3e2097;
$custom-light: #7e60b7;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2097",
  "rgb": {
    "r": 62,
    "g": 32,
    "b": 151
  },
  "hsl": {
    "h": 255.126,
    "s": 65.027,
    "l": 35.882
  },
  "oklch": {
    "l": 0.37026,
    "c": 0.17813,
    "h": 285.3
  },
  "luminance": 0.04292
}

Semantic roles & 50–950 ramp

primary
#3E2097
secondary
#A4BF54
accent
#E840BE
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3E2097

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

Preview Lab → · Contrast checker → · Palette generator →

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