#3E20B4#3E20B4

#3E20B4 is a dark, highly saturated violet. Relative luminance 0.054; OKLCH L 40.1% C 0.211 H 280.3°. Best body text is #FFFFFF at 10.14:1 contrast (WCAG AA passes).

Color values

HEX#3E20B4
RGBrgb(62, 32, 180)
HSLhsl(252, 70%, 42%)
HSVhsv(252, 82%, 71%)
CMYKcmyk(65.6%, 82.2%, 0%, 29.4%)
CIE-LABlab(27.71, 53.30, -72.09)
CIE-LCHlch(27.71, 89.65, 306.48°)
OKLaboklab(40.1% 0.0378 -0.2081)
OKLCHoklch(40.1% 0.212 280.3)
XYZxyz(10.7387, 5.3516, 43.6382)
Luminance0.0535 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E20B4 #96B420
analogous
#204CB4 #3E20B4 #8820B4
triadic
#3E20B4 #B43E20 #20B43E
tetradic
#3E20B4 #B4204C #96B420 #20B488
square
#3E20B4 #B4204C #96B420 #20B488
split-complementary
#3E20B4 #B48820 #4CB420
monochromatic
#1A0E4C #2C1780 #3E20B4 #5736DB #836AE4

Accessibility & contrast

On white

10.14
#3E20B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#3E20B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E20B4
10.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E20B4#FFFFFF#000000##FFFFFF
##3E20B41.0010.142.0710.14
#FFFFFF10.141.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047B8
Deuteranopia (green-blind)
#003CB1
Tritanopia (blue-blind)
#004E6C
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #3e20b4;
/* rgb */ color: rgb(62, 32, 180);
/* oklch */ color: oklch(40.1% 0.211 280.3);
Tailwind
colors: {
  custom: {
    50: '#8462cc',
    500: '#3e20b4',
    950: '#000000',
  },
}
SCSS
$custom: #3e20b4;
$custom-light: #8462cc;
$custom-dark: #000000;
JSON
{
  "hex": "#3e20b4",
  "rgb": {
    "r": 62,
    "g": 32,
    "b": 180
  },
  "hsl": {
    "h": 252.162,
    "s": 69.811,
    "l": 41.569
  },
  "oklch": {
    "l": 0.40097,
    "c": 0.2115,
    "h": 280.3
  },
  "luminance": 0.05352
}

Semantic roles & 50–950 ramp

primary
#3E20B4
secondary
#B6CA66
accent
#ED3BC9
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0514
muted
#7D7A82

Preview Lab

Preview with #3E20B4

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

Preview Lab → · Contrast checker → · Palette generator →

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