#3F20A2#3F20A2

#3F20A2 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.3% C 0.191 H 283.7°. Best body text is #FFFFFF at 10.83:1 contrast (WCAG AA passes).

Color values

HEX#3F20A2
RGBrgb(63, 32, 162)
HSLhsl(254, 67%, 38%)
HSVhsv(254, 80%, 64%)
CMYKcmyk(61.1%, 80.2%, 0%, 36.5%)
CIE-LABlab(25.86, 48.21, -64.32)
CIE-LCHlch(25.86, 80.38, 306.85°)
OKLaboklab(38.26% 0.0451 -0.1854)
OKLCHoklch(38.26% 0.191 283.7)
XYZxyz(9.0860, 4.6978, 34.6034)
Luminance0.0470 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F20A2 #83A220
analogous
#2042A2 #3F20A2 #8020A2
triadic
#3F20A2 #A23F20 #20A23F
tetradic
#3F20A2 #A22042 #83A220 #20A280
square
#3F20A2 #A22042 #83A220 #20A280
split-complementary
#3F20A2 #A28020 #42A220
monochromatic
#170C3C #2B166F #3F20A2 #532AD5 #7C5DDF

Accessibility & contrast

On white

10.83
#3F20A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#3F20A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F20A2
10.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F20A2#FFFFFF#000000##FFFFFF
##3F20A21.0010.831.9410.83
#FFFFFF10.831.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A6
Deuteranopia (green-blind)
#0039A0
Tritanopia (blue-blind)
#004761
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #3f20a2;
/* rgb */ color: rgb(63, 32, 162);
/* oklch */ color: oklch(38.3% 0.191 283.7);
Tailwind
colors: {
  custom: {
    50: '#8160bf',
    500: '#3f20a2',
    950: '#000000',
  },
}
SCSS
$custom: #3f20a2;
$custom-light: #8160bf;
$custom-dark: #000000;
JSON
{
  "hex": "#3f20a2",
  "rgb": {
    "r": 63,
    "g": 32,
    "b": 162
  },
  "hsl": {
    "h": 254.308,
    "s": 67.01,
    "l": 38.039
  },
  "oklch": {
    "l": 0.38259,
    "c": 0.19083,
    "h": 283.7
  },
  "luminance": 0.04698
}

Semantic roles & 50–950 ramp

primary
#3F20A2
secondary
#AAC35A
accent
#EA3EC1
background
#F8F5FB
surface
#F0EAF7
border
#CBC6D0
text
#0C0512
muted
#7D7981

Preview Lab

Preview with #3F20A2

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

Preview Lab → · Contrast checker → · Palette generator →

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