#3F20A6#3F20A6

#3F20A6 is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.7% C 0.195 H 283.0°. Best body text is #FFFFFF at 10.67:1 contrast (WCAG AA passes).

Color values

HEX#3F20A6
RGBrgb(63, 32, 166)
HSLhsl(254, 68%, 39%)
HSVhsv(254, 81%, 65%)
CMYKcmyk(62%, 80.7%, 0%, 34.9%)
CIE-LABlab(26.28, 49.37, -66.04)
CIE-LCHlch(26.28, 82.45, 306.78°)
OKLaboklab(38.68% 0.0438 -0.1905)
OKLCHoklch(38.68% 0.195 283)
XYZxyz(9.4472, 4.8423, 36.5058)
Luminance0.0484 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F20A6 #87A620
analogous
#2044A6 #3F20A6 #8220A6
triadic
#3F20A6 #A63F20 #20A63F
tetradic
#3F20A6 #A62044 #87A620 #20A682
square
#3F20A6 #A62044 #87A620 #20A682
split-complementary
#3F20A6 #A68220 #44A620
monochromatic
#180C3F #2C1673 #3F20A6 #542DD6 #7E60E0

Accessibility & contrast

On white

10.67
#3F20A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F20A6
10.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F20A6#FFFFFF#000000##FFFFFF
##3F20A61.0010.671.9710.67
#FFFFFF10.671.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042AA
Deuteranopia (green-blind)
#003AA4
Tritanopia (blue-blind)
#004964
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3f20a6;
/* rgb */ color: rgb(63, 32, 166);
/* oklch */ color: oklch(38.7% 0.195 283.0);
Tailwind
colors: {
  custom: {
    50: '#8261c2',
    500: '#3f20a6',
    950: '#000000',
  },
}
SCSS
$custom: #3f20a6;
$custom-light: #8261c2;
$custom-dark: #000000;
JSON
{
  "hex": "#3f20a6",
  "rgb": {
    "r": 63,
    "g": 32,
    "b": 166
  },
  "hsl": {
    "h": 253.881,
    "s": 67.677,
    "l": 38.824
  },
  "oklch": {
    "l": 0.3868,
    "c": 0.19543,
    "h": 283
  },
  "luminance": 0.04843
}

Semantic roles & 50–950 ramp

primary
#3F20A6
secondary
#ADC55D
accent
#EB3DC2
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #3F20A6

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

Preview Lab → · Contrast checker → · Palette generator →

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