#3E23A7#3E23A7

#3E23A7 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.0% C 0.194 H 282.0°. Best body text is #FFFFFF at 10.48:1 contrast (WCAG AA passes).

Color values

HEX#3E23A7
RGBrgb(62, 35, 167)
HSLhsl(252, 65%, 40%)
HSVhsv(252, 79%, 65%)
CMYKcmyk(62.9%, 79%, 0%, 34.5%)
CIE-LABlab(26.78, 48.14, -65.83)
CIE-LCHlch(26.78, 81.55, 306.18°)
OKLaboklab(39.03% 0.0402 -0.1899)
OKLCHoklch(39.03% 0.194 282)
XYZxyz(9.5605, 5.0155, 37.0160)
Luminance0.0502 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E23A7 #8CA723
analogous
#234AA7 #3E23A7 #8023A7
triadic
#3E23A7 #A73E23 #23A73E
tetradic
#3E23A7 #A7234A #8CA723 #23A780
square
#3E23A7 #A7234A #8CA723 #23A780
split-complementary
#3E23A7 #A78023 #4AA723
monochromatic
#180E42 #2B1874 #3E23A7 #5433D4 #7E66DF

Accessibility & contrast

On white

10.48
#3E23A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#3E23A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E23A7
10.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E23A7#FFFFFF#000000##FFFFFF
##3E23A71.0010.482.0010.48
#FFFFFF10.481.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AB
Deuteranopia (green-blind)
#003BA5
Tritanopia (blue-blind)
#004A65
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #3e23a7;
/* rgb */ color: rgb(62, 35, 167);
/* oklch */ color: oklch(39.0% 0.194 282.0);
Tailwind
colors: {
  custom: {
    50: '#8162c2',
    500: '#3e23a7',
    950: '#000000',
  },
}
SCSS
$custom: #3e23a7;
$custom-light: #8162c2;
$custom-dark: #000000;
JSON
{
  "hex": "#3e23a7",
  "rgb": {
    "r": 62,
    "g": 35,
    "b": 167
  },
  "hsl": {
    "h": 252.273,
    "s": 65.347,
    "l": 39.608
  },
  "oklch": {
    "l": 0.39034,
    "c": 0.19412,
    "h": 282
  },
  "luminance": 0.05016
}

Semantic roles & 50–950 ramp

primary
#3E23A7
secondary
#B0C461
accent
#E83FC6
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0513
muted
#7D7A82

Preview Lab

Preview with #3E23A7

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

Preview Lab → · Contrast checker → · Palette generator →

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