#3E2397#3E2397

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

Color values

HEX#3E2397
RGBrgb(62, 35, 151)
HSLhsl(254, 62%, 36%)
HSVhsv(254, 77%, 59%)
CMYKcmyk(58.9%, 76.8%, 0%, 40.8%)
CIE-LABlab(25.14, 43.36, -58.78)
CIE-LCHlch(25.14, 73.05, 306.42°)
OKLaboklab(37.39% 0.0448 -0.1693)
OKLCHoklch(37.39% 0.175 284.8)
XYZxyz(8.1718, 4.4601, 29.7024)
Luminance0.0446 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E2397 #7C9723
analogous
#234297 #3E2397 #782397
triadic
#3E2397 #973E23 #23973E
tetradic
#3E2397 #972342 #7C9723 #239778
square
#3E2397 #972342 #7C9723 #239778
split-complementary
#3E2397 #977823 #429723
monochromatic
#150C34 #2A1765 #3E2397 #522FC9 #795BD9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##3E2397#FFFFFF#000000##FFFFFF
##3E23971.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)
#003F9A
Deuteranopia (green-blind)
#003895
Tritanopia (blue-blind)
#0D445C
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3e2397;
/* rgb */ color: rgb(62, 35, 151);
/* oklch */ color: oklch(37.4% 0.175 284.8);
Tailwind
colors: {
  custom: {
    50: '#7e61b7',
    500: '#3e2397',
    950: '#000000',
  },
}
SCSS
$custom: #3e2397;
$custom-light: #7e61b7;
$custom-dark: #000000;
JSON
{
  "hex": "#3e2397",
  "rgb": {
    "r": 62,
    "g": 35,
    "b": 151
  },
  "hsl": {
    "h": 253.966,
    "s": 62.366,
    "l": 36.471
  },
  "oklch": {
    "l": 0.37394,
    "c": 0.17515,
    "h": 284.8
  },
  "luminance": 0.04461
}

Semantic roles & 50–950 ramp

primary
#3E2397
secondary
#A6BE58
accent
#E542BF
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #3E2397

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

Preview Lab → · Contrast checker → · Palette generator →

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