#3E23A5#3E23A5

#3E23A5 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.8% C 0.192 H 282.3°. Best body text is #FFFFFF at 10.56:1 contrast (WCAG AA passes).

Color values

HEX#3E23A5
RGBrgb(62, 35, 165)
HSLhsl(252, 65%, 39%)
HSVhsv(252, 79%, 65%)
CMYKcmyk(62.4%, 78.8%, 0%, 35.3%)
CIE-LABlab(26.57, 47.55, -64.97)
CIE-LCHlch(26.57, 80.51, 306.20°)
OKLaboklab(38.83% 0.0408 -0.1874)
OKLCHoklch(38.83% 0.192 282.3)
XYZxyz(9.3770, 4.9421, 36.0498)
Luminance0.0494 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E23A5 #8AA523
analogous
#2349A5 #3E23A5 #7F23A5
triadic
#3E23A5 #A53E23 #23A53E
tetradic
#3E23A5 #A52349 #8AA523 #23A57F
square
#3E23A5 #A52349 #8AA523 #23A57F
split-complementary
#3E23A5 #A57F23 #49A523
monochromatic
#180E40 #2B1873 #3E23A5 #5332D3 #7E64DE

Accessibility & contrast

On white

10.56
#3E23A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#3E23A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E23A5
10.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E23A5#FFFFFF#000000##FFFFFF
##3E23A51.0010.561.9910.56
#FFFFFF10.561.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A9
Deuteranopia (green-blind)
#003AA3
Tritanopia (blue-blind)
#004964
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #3e23a5;
/* rgb */ color: rgb(62, 35, 165);
/* oklch */ color: oklch(38.8% 0.192 282.3);
Tailwind
colors: {
  custom: {
    50: '#8162c1',
    500: '#3e23a5',
    950: '#000000',
  },
}
SCSS
$custom: #3e23a5;
$custom-light: #8162c1;
$custom-dark: #000000;
JSON
{
  "hex": "#3e23a5",
  "rgb": {
    "r": 62,
    "g": 35,
    "b": 165
  },
  "hsl": {
    "h": 252.462,
    "s": 65,
    "l": 39.216
  },
  "oklch": {
    "l": 0.38826,
    "c": 0.19178,
    "h": 282.3
  },
  "luminance": 0.04943
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3E23A5

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

Preview Lab → · Contrast checker → · Palette generator →

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