#3F20B3#3F20B3

#3F20B3 is a dark, highly saturated violet. Relative luminance 0.053; OKLCH L 40.1% C 0.210 H 280.9°. Best body text is #FFFFFF at 10.15:1 contrast (WCAG AA passes).

Color values

HEX#3F20B3
RGBrgb(63, 32, 179)
HSLhsl(253, 70%, 41%)
HSVhsv(253, 82%, 70%)
CMYKcmyk(64.8%, 82.1%, 0%, 29.8%)
CIE-LABlab(27.69, 53.10, -71.52)
CIE-LCHlch(27.69, 89.08, 306.59°)
OKLaboklab(40.07% 0.0396 -0.2064)
OKLCHoklch(40.07% 0.21 280.9)
XYZxyz(10.7005, 5.3436, 43.1066)
Luminance0.0534 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3F20B3 #94B320
analogous
#204BB3 #3F20B3 #8920B3
triadic
#3F20B3 #B33F20 #20B33F
tetradic
#3F20B3 #B3204B #94B320 #20B389
square
#3F20B3 #B3204B #94B320 #20B389
split-complementary
#3F20B3 #B38920 #4BB320
monochromatic
#1A0D4B #2D177F #3F20B3 #5835DB #8369E4

Accessibility & contrast

On white

10.15
#3F20B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#3F20B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3F20B3
10.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3F20B3#FFFFFF#000000##FFFFFF
##3F20B31.0010.152.0710.15
#FFFFFF10.151.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046B7
Deuteranopia (green-blind)
#003CB0
Tritanopia (blue-blind)
#004E6B
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #3f20b3;
/* rgb */ color: rgb(63, 32, 179);
/* oklch */ color: oklch(40.1% 0.210 280.9);
Tailwind
colors: {
  custom: {
    50: '#8462cb',
    500: '#3f20b3',
    950: '#000000',
  },
}
SCSS
$custom: #3f20b3;
$custom-light: #8462cb;
$custom-dark: #000000;
JSON
{
  "hex": "#3f20b3",
  "rgb": {
    "r": 63,
    "g": 32,
    "b": 179
  },
  "hsl": {
    "h": 252.653,
    "s": 69.668,
    "l": 41.373
  },
  "oklch": {
    "l": 0.40072,
    "c": 0.21019,
    "h": 280.9
  },
  "luminance": 0.05344
}

Semantic roles & 50–950 ramp

primary
#3F20B3
secondary
#B5CA65
accent
#EC3BC7
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0513
muted
#7D7A82

Preview Lab

Preview with #3F20B3

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

Preview Lab → · Contrast checker → · Palette generator →

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