#3E23A3#3E23A3

#3E23A3 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.6% C 0.189 H 282.6°. Best body text is #FFFFFF at 10.64:1 contrast (WCAG AA passes).

Color values

HEX#3E23A3
RGBrgb(62, 35, 163)
HSLhsl(253, 65%, 39%)
HSVhsv(253, 79%, 64%)
CMYKcmyk(62%, 78.5%, 0%, 36.1%)
CIE-LABlab(26.36, 46.95, -64.10)
CIE-LCHlch(26.36, 79.45, 306.22°)
OKLaboklab(38.62% 0.0414 -0.1848)
OKLCHoklch(38.62% 0.189 282.6)
XYZxyz(9.1964, 4.8699, 35.0986)
Luminance0.0487 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E23A3 #88A323
analogous
#2348A3 #3E23A3 #7E23A3
triadic
#3E23A3 #A33E23 #23A33E
tetradic
#3E23A3 #A32348 #88A323 #23A37E
square
#3E23A3 #A32348 #88A323 #23A37E
split-complementary
#3E23A3 #A37E23 #48A323
monochromatic
#180D3E #2B1871 #3E23A3 #5331D3 #7D63DD

Accessibility & contrast

On white

10.64
#3E23A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#3E23A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E23A3
10.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E23A3#FFFFFF#000000##FFFFFF
##3E23A31.0010.641.9710.64
#FFFFFF10.641.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A7
Deuteranopia (green-blind)
#003AA1
Tritanopia (blue-blind)
#004962
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3e23a3;
/* rgb */ color: rgb(62, 35, 163);
/* oklch */ color: oklch(38.6% 0.189 282.6);
Tailwind
colors: {
  custom: {
    50: '#8062bf',
    500: '#3e23a3',
    950: '#000000',
  },
}
SCSS
$custom: #3e23a3;
$custom-light: #8062bf;
$custom-dark: #000000;
JSON
{
  "hex": "#3e23a3",
  "rgb": {
    "r": 62,
    "g": 35,
    "b": 163
  },
  "hsl": {
    "h": 252.656,
    "s": 64.646,
    "l": 38.824
  },
  "oklch": {
    "l": 0.38618,
    "c": 0.18943,
    "h": 282.6
  },
  "luminance": 0.04871
}

Semantic roles & 50–950 ramp

primary
#3E23A3
secondary
#AEC35F
accent
#E840C4
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #3E23A3

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

Preview Lab → · Contrast checker → · Palette generator →

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