#3F20A8#3F20A8

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

Color values

HEX#3F20A8
RGBrgb(63, 32, 168)
HSLhsl(254, 68%, 39%)
HSVhsv(254, 81%, 66%)
CMYKcmyk(62.5%, 81%, 0%, 34.1%)
CIE-LABlab(26.50, 49.94, -66.90)
CIE-LCHlch(26.50, 83.49, 306.74°)
OKLaboklab(38.89% 0.0432 -0.1929)
OKLCHoklch(38.89% 0.198 282.6)
XYZxyz(9.6321, 4.9163, 37.4796)
Luminance0.0492 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F20A8 #89A820
analogous
#2045A8 #3F20A8 #8320A8
triadic
#3F20A8 #A83F20 #20A83F
tetradic
#3F20A8 #A82045 #89A820 #20A883
square
#3F20A8 #A82045 #89A820 #20A883
split-complementary
#3F20A8 #A88320 #45A820
monochromatic
#180C41 #2C1675 #3F20A8 #552ED7 #7E61E1

Accessibility & contrast

On white

10.59
#3F20A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F20A8
10.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F20A8#FFFFFF#000000##FFFFFF
##3F20A81.0010.591.9810.59
#FFFFFF10.591.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.591.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3f20a8;
/* rgb */ color: rgb(63, 32, 168);
/* oklch */ color: oklch(38.9% 0.198 282.6);
Tailwind
colors: {
  custom: {
    50: '#8261c3',
    500: '#3f20a8',
    950: '#000000',
  },
}
SCSS
$custom: #3f20a8;
$custom-light: #8261c3;
$custom-dark: #000000;
JSON
{
  "hex": "#3f20a8",
  "rgb": {
    "r": 63,
    "g": 32,
    "b": 168
  },
  "hsl": {
    "h": 253.676,
    "s": 68,
    "l": 39.216
  },
  "oklch": {
    "l": 0.38891,
    "c": 0.19772,
    "h": 282.6
  },
  "luminance": 0.04917
}

Semantic roles & 50–950 ramp

primary
#3F20A8
secondary
#AEC65E
accent
#EB3DC3
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #3F20A8

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

Preview Lab → · Contrast checker → · Palette generator →

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