#3E23A0#3E23A0

#3E23A0 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.3% C 0.186 H 283.1°. Best body text is #FFFFFF at 10.75:1 contrast (WCAG AA passes).

Color values

HEX#3E23A0
RGBrgb(62, 35, 160)
HSLhsl(253, 64%, 38%)
HSVhsv(253, 78%, 63%)
CMYKcmyk(61.2%, 78.1%, 0%, 37.3%)
CIE-LABlab(26.05, 46.06, -62.78)
CIE-LCHlch(26.05, 77.87, 306.26°)
OKLaboklab(38.31% 0.0423 -0.181)
OKLCHoklch(38.31% 0.186 283.1)
XYZxyz(8.9308, 4.7637, 33.6998)
Luminance0.0476 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E23A0 #85A023
analogous
#2346A0 #3E23A0 #7C23A0
triadic
#3E23A0 #A03E23 #23A03E
tetradic
#3E23A0 #A02346 #85A023 #23A07C
square
#3E23A0 #A02346 #85A023 #23A07C
split-complementary
#3E23A0 #A07C23 #46A023
monochromatic
#170D3C #2B186E #3E23A0 #522FD1 #7C61DC

Accessibility & contrast

On white

10.75
#3E23A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#3E23A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E23A0
10.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E23A0#FFFFFF#000000##FFFFFF
##3E23A01.0010.751.9510.75
#FFFFFF10.751.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A4
Deuteranopia (green-blind)
#00399E
Tritanopia (blue-blind)
#004761
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3e23a0;
/* rgb */ color: rgb(62, 35, 160);
/* oklch */ color: oklch(38.3% 0.186 283.1);
Tailwind
colors: {
  custom: {
    50: '#8062bd',
    500: '#3e23a0',
    950: '#000000',
  },
}
SCSS
$custom: #3e23a0;
$custom-light: #8062bd;
$custom-dark: #000000;
JSON
{
  "hex": "#3e23a0",
  "rgb": {
    "r": 62,
    "g": 35,
    "b": 160
  },
  "hsl": {
    "h": 252.96,
    "s": 64.103,
    "l": 38.235
  },
  "oklch": {
    "l": 0.38308,
    "c": 0.18589,
    "h": 283.1
  },
  "luminance": 0.04764
}

Semantic roles & 50–950 ramp

primary
#3E23A0
secondary
#ACC15D
accent
#E741C3
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0B0512
muted
#7C7A81

Preview Lab

Preview with #3E23A0

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

Preview Lab → · Contrast checker → · Palette generator →

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