#3E23A9#3E23A9

#3E23A9 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.2% C 0.196 H 281.6°. Best body text is #FFFFFF at 10.41:1 contrast (WCAG AA passes).

Color values

HEX#3E23A9
RGBrgb(62, 35, 169)
HSLhsl(252, 66%, 40%)
HSVhsv(252, 79%, 66%)
CMYKcmyk(63.3%, 79.3%, 0%, 33.7%)
CIE-LABlab(26.99, 48.73, -66.69)
CIE-LCHlch(26.99, 82.60, 306.16°)
OKLaboklab(39.24% 0.0397 -0.1924)
OKLCHoklch(39.24% 0.196 281.6)
XYZxyz(9.7468, 5.0900, 37.9973)
Luminance0.0509 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E23A9 #8EA923
analogous
#234BA9 #3E23A9 #8123A9
triadic
#3E23A9 #A93E23 #23A93E
tetradic
#3E23A9 #A9234B #8EA923 #23A981
square
#3E23A9 #A9234B #8EA923 #23A981
split-complementary
#3E23A9 #A98123 #4BA923
monochromatic
#190E44 #2B1976 #3E23A9 #5534D5 #7F67DF

Accessibility & contrast

On white

10.41
#3E23A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#3E23A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E23A9
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E23A9#FFFFFF#000000##FFFFFF
##3E23A91.0010.412.0210.41
#FFFFFF10.411.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AD
Deuteranopia (green-blind)
#003BA7
Tritanopia (blue-blind)
#004B66
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #3e23a9;
/* rgb */ color: rgb(62, 35, 169);
/* oklch */ color: oklch(39.2% 0.196 281.6);
Tailwind
colors: {
  custom: {
    50: '#8262c4',
    500: '#3e23a9',
    950: '#000000',
  },
}
SCSS
$custom: #3e23a9;
$custom-light: #8262c4;
$custom-dark: #000000;
JSON
{
  "hex": "#3e23a9",
  "rgb": {
    "r": 62,
    "g": 35,
    "b": 169
  },
  "hsl": {
    "h": 252.09,
    "s": 65.686,
    "l": 40
  },
  "oklch": {
    "l": 0.39244,
    "c": 0.19645,
    "h": 281.6
  },
  "luminance": 0.05091
}

Semantic roles & 50–950 ramp

primary
#3E23A9
secondary
#B1C563
accent
#E93FC6
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0513
muted
#7D7A82

Preview Lab

Preview with #3E23A9

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

Preview Lab → · Contrast checker → · Palette generator →

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