#4020AF#4020AF

#4020AF is a dark, highly saturated violet. Relative luminance 0.052; OKLCH L 39.7% C 0.206 H 281.9°. Best body text is #FFFFFF at 10.28:1 contrast (WCAG AA passes).

Color values

HEX#4020AF
RGBrgb(64, 32, 175)
HSLhsl(253, 69%, 41%)
HSVhsv(253, 82%, 69%)
CMYKcmyk(63.4%, 81.7%, 0%, 31.4%)
CIE-LABlab(27.35, 52.06, -69.70)
CIE-LCHlch(27.35, 87.00, 306.75°)
OKLaboklab(39.73% 0.0424 -0.2011)
OKLCHoklch(39.73% 0.206 281.9)
XYZxyz(10.3663, 5.2174, 41.0099)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4020AF #8FAF20
analogous
#2047AF #4020AF #8820AF
triadic
#4020AF #AF4020 #20AF40
tetradic
#4020AF #AF2047 #8FAF20 #20AF88
square
#4020AF #AF2047 #8FAF20 #20AF88
split-complementary
#4020AF #AF8820 #47AF20
monochromatic
#1A0D48 #2D177B #4020AF #5833DA #8266E3

Accessibility & contrast

On white

10.28
#4020AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#4020AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4020AF
10.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4020AF#FFFFFF#000000##FFFFFF
##4020AF1.0010.282.0410.28
#FFFFFF10.281.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045B3
Deuteranopia (green-blind)
#003BAD
Tritanopia (blue-blind)
#004C69
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4020af;
/* rgb */ color: rgb(64, 32, 175);
/* oklch */ color: oklch(39.7% 0.206 281.9);
Tailwind
colors: {
  custom: {
    50: '#8461c8',
    500: '#4020af',
    950: '#000000',
  },
}
SCSS
$custom: #4020af;
$custom-light: #8461c8;
$custom-dark: #000000;
JSON
{
  "hex": "#4020af",
  "rgb": {
    "r": 64,
    "g": 32,
    "b": 175
  },
  "hsl": {
    "h": 253.427,
    "s": 69.082,
    "l": 40.588
  },
  "oklch": {
    "l": 0.39726,
    "c": 0.20552,
    "h": 281.9
  },
  "luminance": 0.05218
}

Semantic roles & 50–950 ramp

primary
#4020AF
secondary
#B2C862
accent
#EC3CC5
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0513
muted
#7D7A82

Preview Lab

Preview with #4020AF

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

Preview Lab → · Contrast checker → · Palette generator →

#4020AF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva