#3E239E#3E239E

#3E239E is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.1% C 0.184 H 283.5°. Best body text is #FFFFFF at 10.83:1 contrast (WCAG AA passes).

Color values

HEX#3E239E
RGBrgb(62, 35, 158)
HSLhsl(253, 64%, 38%)
HSVhsv(253, 78%, 62%)
CMYKcmyk(60.8%, 77.8%, 0%, 38%)
CIE-LABlab(25.85, 45.46, -61.90)
CIE-LCHlch(25.85, 76.81, 306.29°)
OKLaboklab(38.1% 0.0428 -0.1784)
OKLCHoklch(38.1% 0.184 283.5)
XYZxyz(8.7573, 4.6942, 32.7857)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E239E #839E23
analogous
#23459E #3E239E #7C239E
triadic
#3E239E #9E3E23 #239E3E
tetradic
#3E239E #9E2345 #839E23 #239E7C
square
#3E239E #9E2345 #839E23 #239E7C
split-complementary
#3E239E #9E7C23 #459E23
monochromatic
#170D3A #2A186C #3E239E #522ED0 #7B60DC

Accessibility & contrast

On white

10.83
#3E239E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#3E239E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E239E
10.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E239E#FFFFFF#000000##FFFFFF
##3E239E1.0010.831.9410.83
#FFFFFF10.831.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A1
Deuteranopia (green-blind)
#00399C
Tritanopia (blue-blind)
#004760
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3e239e;
/* rgb */ color: rgb(62, 35, 158);
/* oklch */ color: oklch(38.1% 0.184 283.5);
Tailwind
colors: {
  custom: {
    50: '#8062bc',
    500: '#3e239e',
    950: '#000000',
  },
}
SCSS
$custom: #3e239e;
$custom-light: #8062bc;
$custom-dark: #000000;
JSON
{
  "hex": "#3e239e",
  "rgb": {
    "r": 62,
    "g": 35,
    "b": 158
  },
  "hsl": {
    "h": 253.171,
    "s": 63.731,
    "l": 37.843
  },
  "oklch": {
    "l": 0.38103,
    "c": 0.18352,
    "h": 283.5
  },
  "luminance": 0.04695
}

Semantic roles & 50–950 ramp

primary
#3E239E
secondary
#ABC15C
accent
#E741C2
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3E239E

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

Preview Lab → · Contrast checker → · Palette generator →

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