#3E23A6#3E23A6

#3E23A6 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.9% C 0.193 H 282.1°. Best body text is #FFFFFF at 10.52:1 contrast (WCAG AA passes).

Color values

HEX#3E23A6
RGBrgb(62, 35, 166)
HSLhsl(252, 65%, 39%)
HSVhsv(252, 79%, 65%)
CMYKcmyk(62.7%, 78.9%, 0%, 34.9%)
CIE-LABlab(26.67, 47.84, -65.40)
CIE-LCHlch(26.67, 81.03, 306.19°)
OKLaboklab(38.93% 0.0405 -0.1886)
OKLCHoklch(38.93% 0.193 282.1)
XYZxyz(9.4684, 4.9787, 36.5310)
Luminance0.0498 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E23A6 #8BA623
analogous
#234AA6 #3E23A6 #7F23A6
triadic
#3E23A6 #A63E23 #23A63E
tetradic
#3E23A6 #A6234A #8BA623 #23A67F
square
#3E23A6 #A6234A #8BA623 #23A67F
split-complementary
#3E23A6 #A67F23 #4AA623
monochromatic
#180E41 #2B1873 #3E23A6 #5432D4 #7E65DF

Accessibility & contrast

On white

10.52
#3E23A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3E23A6
10.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E23A6#FFFFFF#000000##FFFFFF
##3E23A61.0010.522.0010.52
#FFFFFF10.521.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043AA
Deuteranopia (green-blind)
#003AA4
Tritanopia (blue-blind)
#004A64
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #3e23a6;
/* rgb */ color: rgb(62, 35, 166);
/* oklch */ color: oklch(38.9% 0.193 282.1);
Tailwind
colors: {
  custom: {
    50: '#8162c2',
    500: '#3e23a6',
    950: '#000000',
  },
}
SCSS
$custom: #3e23a6;
$custom-light: #8162c2;
$custom-dark: #000000;
JSON
{
  "hex": "#3e23a6",
  "rgb": {
    "r": 62,
    "g": 35,
    "b": 166
  },
  "hsl": {
    "h": 252.366,
    "s": 65.174,
    "l": 39.412
  },
  "oklch": {
    "l": 0.3893,
    "c": 0.19295,
    "h": 282.1
  },
  "luminance": 0.04979
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3E23A6

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

Preview Lab → · Contrast checker → · Palette generator →

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