#3F20B4#3F20B4

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

Color values

HEX#3F20B4
RGBrgb(63, 32, 180)
HSLhsl(253, 70%, 42%)
HSVhsv(253, 82%, 71%)
CMYKcmyk(65%, 82.2%, 0%, 29.4%)
CIE-LABlab(27.80, 53.39, -71.94)
CIE-LCHlch(27.80, 89.58, 306.58°)
OKLaboklab(40.18% 0.0393 -0.2076)
OKLCHoklch(40.18% 0.211 280.7)
XYZxyz(10.8020, 5.3842, 43.6412)
Luminance0.0539 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F20B4 #95B420
analogous
#204BB4 #3F20B4 #8920B4
triadic
#3F20B4 #B43F20 #20B43F
tetradic
#3F20B4 #B4204B #95B420 #20B489
square
#3F20B4 #B4204B #95B420 #20B489
split-complementary
#3F20B4 #B48920 #4BB420
monochromatic
#1B0E4C #2D1780 #3F20B4 #5936DB #846AE4

Accessibility & contrast

On white

10.11
#3F20B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#3F20B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F20B4
10.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F20B4#FFFFFF#000000##FFFFFF
##3F20B41.0010.112.0810.11
#FFFFFF10.111.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.111.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3f20b4;
/* rgb */ color: rgb(63, 32, 180);
/* oklch */ color: oklch(40.2% 0.211 280.7);
Tailwind
colors: {
  custom: {
    50: '#8462cc',
    500: '#3f20b4',
    950: '#000000',
  },
}
SCSS
$custom: #3f20b4;
$custom-light: #8462cc;
$custom-dark: #000000;
JSON
{
  "hex": "#3f20b4",
  "rgb": {
    "r": 63,
    "g": 32,
    "b": 180
  },
  "hsl": {
    "h": 252.568,
    "s": 69.811,
    "l": 41.569
  },
  "oklch": {
    "l": 0.4018,
    "c": 0.21132,
    "h": 280.7
  },
  "luminance": 0.05385
}

Semantic roles & 50–950 ramp

primary
#3F20B4
secondary
#B5CA66
accent
#ED3BC7
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0514
muted
#7D7A82

Preview Lab

Preview with #3F20B4

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

Preview Lab → · Contrast checker → · Palette generator →

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