#3E239A#3E239A

#3E239A is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.7% C 0.179 H 284.2°. Best body text is #FFFFFF at 10.98:1 contrast (WCAG AA passes).

Color values

HEX#3E239A
RGBrgb(62, 35, 154)
HSLhsl(254, 63%, 37%)
HSVhsv(254, 77%, 60%)
CMYKcmyk(59.7%, 77.3%, 0%, 39.6%)
CIE-LABlab(25.44, 44.26, -60.13)
CIE-LCHlch(25.44, 74.66, 306.36°)
OKLaboklab(37.7% 0.044 -0.1733)
OKLCHoklch(37.7% 0.179 284.2)
XYZxyz(8.4186, 4.5588, 31.0019)
Luminance0.0456 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E239A #7F9A23
analogous
#23449A #3E239A #79239A
triadic
#3E239A #9A3E23 #239A3E
tetradic
#3E239A #9A2344 #7F9A23 #239A79
square
#3E239A #9A2344 #7F9A23 #239A79
split-complementary
#3E239A #9A7923 #449A23
monochromatic
#160C36 #2A1868 #3E239A #522ECC #7A5DDA

Accessibility & contrast

On white

10.98
#3E239A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#3E239A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E239A
10.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E239A#FFFFFF#000000##FFFFFF
##3E239A1.0010.981.9110.98
#FFFFFF10.981.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409D
Deuteranopia (green-blind)
#003898
Tritanopia (blue-blind)
#05455D
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3e239a;
/* rgb */ color: rgb(62, 35, 154);
/* oklch */ color: oklch(37.7% 0.179 284.2);
Tailwind
colors: {
  custom: {
    50: '#7f62b9',
    500: '#3e239a',
    950: '#000000',
  },
}
SCSS
$custom: #3e239a;
$custom-light: #7f62b9;
$custom-dark: #000000;
JSON
{
  "hex": "#3e239a",
  "rgb": {
    "r": 62,
    "g": 35,
    "b": 154
  },
  "hsl": {
    "h": 253.613,
    "s": 62.963,
    "l": 37.059
  },
  "oklch": {
    "l": 0.37696,
    "c": 0.17875,
    "h": 284.2
  },
  "luminance": 0.04559
}

Semantic roles & 50–950 ramp

primary
#3E239A
secondary
#A8BF5A
accent
#E642C1
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3E239A

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

Preview Lab → · Contrast checker → · Palette generator →

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