#3F20A7#3F20A7

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

Color values

HEX#3F20A7
RGBrgb(63, 32, 167)
HSLhsl(254, 68%, 39%)
HSVhsv(254, 81%, 65%)
CMYKcmyk(62.3%, 80.8%, 0%, 34.5%)
CIE-LABlab(26.39, 49.66, -66.47)
CIE-LCHlch(26.39, 82.97, 306.76°)
OKLaboklab(38.78% 0.0435 -0.1917)
OKLCHoklch(38.78% 0.197 282.8)
XYZxyz(9.5393, 4.8791, 36.9908)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F20A7 #88A720
analogous
#2045A7 #3F20A7 #8320A7
triadic
#3F20A7 #A73F20 #20A73F
tetradic
#3F20A7 #A72045 #88A720 #20A783
square
#3F20A7 #A72045 #88A720 #20A783
split-complementary
#3F20A7 #A78320 #45A720
monochromatic
#180C40 #2C1674 #3F20A7 #542DD7 #7E61E1

Accessibility & contrast

On white

10.63
#3F20A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3F20A7
10.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F20A7#FFFFFF#000000##FFFFFF
##3F20A71.0010.631.9810.63
#FFFFFF10.631.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043AB
Deuteranopia (green-blind)
#003AA5
Tritanopia (blue-blind)
#004964
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3f20a7;
/* rgb */ color: rgb(63, 32, 167);
/* oklch */ color: oklch(38.8% 0.197 282.8);
Tailwind
colors: {
  custom: {
    50: '#8261c2',
    500: '#3f20a7',
    950: '#000000',
  },
}
SCSS
$custom: #3f20a7;
$custom-light: #8261c2;
$custom-dark: #000000;
JSON
{
  "hex": "#3f20a7",
  "rgb": {
    "r": 63,
    "g": 32,
    "b": 167
  },
  "hsl": {
    "h": 253.778,
    "s": 67.839,
    "l": 39.02
  },
  "oklch": {
    "l": 0.38785,
    "c": 0.19658,
    "h": 282.8
  },
  "luminance": 0.0488
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3F20A7

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

Preview Lab → · Contrast checker → · Palette generator →

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