#3E239F#3E239F

#3E239F is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.2% C 0.185 H 283.3°. Best body text is #FFFFFF at 10.79:1 contrast (WCAG AA passes).

Color values

HEX#3E239F
RGBrgb(62, 35, 159)
HSLhsl(253, 64%, 38%)
HSVhsv(253, 78%, 62%)
CMYKcmyk(61%, 78%, 0%, 37.6%)
CIE-LABlab(25.95, 45.76, -62.35)
CIE-LCHlch(25.95, 77.34, 306.28°)
OKLaboklab(38.21% 0.0426 -0.1797)
OKLCHoklch(38.21% 0.185 283.3)
XYZxyz(8.8437, 4.7288, 33.2409)
Luminance0.0473 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E239F #849F23
analogous
#23469F #3E239F #7C239F
triadic
#3E239F #9F3E23 #239F3E
tetradic
#3E239F #9F2346 #849F23 #239F7C
square
#3E239F #9F2346 #849F23 #239F7C
split-complementary
#3E239F #9F7C23 #469F23
monochromatic
#170D3B #2A186D #3E239F #522ED1 #7B60DC

Accessibility & contrast

On white

10.79
#3E239F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#3E239F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E239F
10.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E239F#FFFFFF#000000##FFFFFF
##3E239F1.0010.791.9510.79
#FFFFFF10.791.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.791.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3e239f;
/* rgb */ color: rgb(62, 35, 159);
/* oklch */ color: oklch(38.2% 0.185 283.3);
Tailwind
colors: {
  custom: {
    50: '#8062bd',
    500: '#3e239f',
    950: '#000000',
  },
}
SCSS
$custom: #3e239f;
$custom-light: #8062bd;
$custom-dark: #000000;
JSON
{
  "hex": "#3e239f",
  "rgb": {
    "r": 62,
    "g": 35,
    "b": 159
  },
  "hsl": {
    "h": 253.065,
    "s": 63.918,
    "l": 38.039
  },
  "oklch": {
    "l": 0.38206,
    "c": 0.18471,
    "h": 283.3
  },
  "luminance": 0.04729
}

Semantic roles & 50–950 ramp

primary
#3E239F
secondary
#ABC15D
accent
#E741C3
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #3E239F

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

Preview Lab → · Contrast checker → · Palette generator →

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