#3E20A8#3E20A8

#3E20A8 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.8% C 0.198 H 282.1°. Best body text is #FFFFFF at 10.62:1 contrast (WCAG AA passes).

Color values

HEX#3E20A8
RGBrgb(62, 32, 168)
HSLhsl(253, 68%, 39%)
HSVhsv(253, 81%, 66%)
CMYKcmyk(63.1%, 81%, 0%, 34.1%)
CIE-LABlab(26.40, 49.84, -67.06)
CIE-LCHlch(26.40, 83.55, 306.62°)
OKLaboklab(38.8% 0.0416 -0.1934)
OKLCHoklch(38.8% 0.198 282.1)
XYZxyz(9.5688, 4.8836, 37.4766)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E20A8 #8AA820
analogous
#2046A8 #3E20A8 #8220A8
triadic
#3E20A8 #A83E20 #20A83E
tetradic
#3E20A8 #A82046 #8AA820 #20A882
square
#3E20A8 #A82046 #8AA820 #20A882
split-complementary
#3E20A8 #A88220 #46A820
monochromatic
#180C41 #2B1675 #3E20A8 #532ED7 #7E61E1

Accessibility & contrast

On white

10.62
#3E20A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#3E20A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E20A8
10.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E20A8#FFFFFF#000000##FFFFFF
##3E20A81.0010.621.9810.62
#FFFFFF10.621.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043AC
Deuteranopia (green-blind)
#003AA6
Tritanopia (blue-blind)
#004965
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3e20a8;
/* rgb */ color: rgb(62, 32, 168);
/* oklch */ color: oklch(38.8% 0.198 282.1);
Tailwind
colors: {
  custom: {
    50: '#8261c3',
    500: '#3e20a8',
    950: '#000000',
  },
}
SCSS
$custom: #3e20a8;
$custom-light: #8261c3;
$custom-dark: #000000;
JSON
{
  "hex": "#3e20a8",
  "rgb": {
    "r": 62,
    "g": 32,
    "b": 168
  },
  "hsl": {
    "h": 253.235,
    "s": 68,
    "l": 39.216
  },
  "oklch": {
    "l": 0.38803,
    "c": 0.19788,
    "h": 282.1
  },
  "luminance": 0.04884
}

Semantic roles & 50–950 ramp

primary
#3E20A8
secondary
#AFC65E
accent
#EB3DC4
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #3E20A8

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

Preview Lab → · Contrast checker → · Palette generator →

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