#3E23A8#3E23A8

#3E23A8 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.1% C 0.195 H 281.8°. Best body text is #FFFFFF at 10.44:1 contrast (WCAG AA passes).

Color values

HEX#3E23A8
RGBrgb(62, 35, 168)
HSLhsl(252, 66%, 40%)
HSVhsv(252, 79%, 66%)
CMYKcmyk(63.1%, 79.2%, 0%, 34.1%)
CIE-LABlab(26.88, 48.44, -66.26)
CIE-LCHlch(26.88, 82.08, 306.17°)
OKLaboklab(39.14% 0.04 -0.1911)
OKLCHoklch(39.14% 0.195 281.8)
XYZxyz(9.6533, 5.0526, 37.5048)
Luminance0.0505 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E23A8 #8DA823
analogous
#234BA8 #3E23A8 #8023A8
triadic
#3E23A8 #A83E23 #23A83E
tetradic
#3E23A8 #A8234B #8DA823 #23A880
square
#3E23A8 #A8234B #8DA823 #23A880
split-complementary
#3E23A8 #A88023 #4BA823
monochromatic
#190E43 #2B1875 #3E23A8 #5434D5 #7F66DF

Accessibility & contrast

On white

10.44
#3E23A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#3E23A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E23A8
10.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E23A8#FFFFFF#000000##FFFFFF
##3E23A81.0010.442.0110.44
#FFFFFF10.441.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AC
Deuteranopia (green-blind)
#003BA6
Tritanopia (blue-blind)
#004B65
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #3e23a8;
/* rgb */ color: rgb(62, 35, 168);
/* oklch */ color: oklch(39.1% 0.195 281.8);
Tailwind
colors: {
  custom: {
    50: '#8162c3',
    500: '#3e23a8',
    950: '#000000',
  },
}
SCSS
$custom: #3e23a8;
$custom-light: #8162c3;
$custom-dark: #000000;
JSON
{
  "hex": "#3e23a8",
  "rgb": {
    "r": 62,
    "g": 35,
    "b": 168
  },
  "hsl": {
    "h": 252.18,
    "s": 65.517,
    "l": 39.804
  },
  "oklch": {
    "l": 0.39139,
    "c": 0.19528,
    "h": 281.8
  },
  "luminance": 0.05053
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3E23A8

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

Preview Lab → · Contrast checker → · Palette generator →

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