#3E23A4#3E23A4

#3E23A4 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.7% C 0.191 H 282.5°. Best body text is #FFFFFF at 10.60:1 contrast (WCAG AA passes).

Color values

HEX#3E23A4
RGBrgb(62, 35, 164)
HSLhsl(253, 65%, 39%)
HSVhsv(253, 79%, 64%)
CMYKcmyk(62.2%, 78.7%, 0%, 35.7%)
CIE-LABlab(26.46, 47.25, -64.53)
CIE-LCHlch(26.46, 79.98, 306.21°)
OKLaboklab(38.72% 0.0411 -0.1861)
OKLCHoklch(38.72% 0.191 282.5)
XYZxyz(9.2864, 4.9059, 35.5723)
Luminance0.0491 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E23A4 #89A423
analogous
#2349A4 #3E23A4 #7F23A4
triadic
#3E23A4 #A43E23 #23A43E
tetradic
#3E23A4 #A42349 #89A423 #23A47F
square
#3E23A4 #A42349 #89A423 #23A47F
split-complementary
#3E23A4 #A47F23 #49A423
monochromatic
#180D3F #2B1872 #3E23A4 #5331D3 #7D64DE

Accessibility & contrast

On white

10.60
#3E23A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#3E23A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E23A4
10.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E23A4#FFFFFF#000000##FFFFFF
##3E23A41.0010.601.9810.60
#FFFFFF10.601.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A8
Deuteranopia (green-blind)
#003AA2
Tritanopia (blue-blind)
#004963
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #3e23a4;
/* rgb */ color: rgb(62, 35, 164);
/* oklch */ color: oklch(38.7% 0.191 282.5);
Tailwind
colors: {
  custom: {
    50: '#8162c0',
    500: '#3e23a4',
    950: '#000000',
  },
}
SCSS
$custom: #3e23a4;
$custom-light: #8162c0;
$custom-dark: #000000;
JSON
{
  "hex": "#3e23a4",
  "rgb": {
    "r": 62,
    "g": 35,
    "b": 164
  },
  "hsl": {
    "h": 252.558,
    "s": 64.824,
    "l": 39.02
  },
  "oklch": {
    "l": 0.38722,
    "c": 0.19061,
    "h": 282.5
  },
  "luminance": 0.04907
}

Semantic roles & 50–950 ramp

primary
#3E23A4
secondary
#AEC360
accent
#E840C5
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #3E23A4

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

Preview Lab → · Contrast checker → · Palette generator →

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