#4020BB#4020BB

#4020BB is a dark, highly saturated violet. Relative luminance 0.057; OKLCH L 41.0% C 0.219 H 280.1°. Best body text is #FFFFFF at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#4020BB
RGBrgb(64, 32, 187)
HSLhsl(252, 71%, 43%)
HSVhsv(252, 83%, 73%)
CMYKcmyk(65.8%, 82.9%, 0%, 26.7%)
CIE-LABlab(28.67, 55.46, -74.66)
CIE-LCHlch(28.67, 93.01, 306.61°)
OKLaboklab(41.03% 0.0385 -0.2155)
OKLCHoklch(41.03% 0.219 280.1)
XYZxyz(11.5977, 5.7099, 47.4950)
Luminance0.0571 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4020BB #9BBB20
analogous
#204EBB #4020BB #8D20BB
triadic
#4020BB #BB4020 #20BB40
tetradic
#4020BB #BB204E #9BBB20 #20BB8D
square
#4020BB #BB204E #9BBB20 #20BB8D
split-complementary
#4020BB #BB8D20 #4EBB20
monochromatic
#1C0E52 #2E1787 #4020BB #5C3BDD #886FE6

Accessibility & contrast

On white

9.80
#4020BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#4020BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4020BB
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4020BB#FFFFFF#000000##FFFFFF
##4020BB1.009.802.149.80
#FFFFFF9.801.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049BF
Deuteranopia (green-blind)
#003EB8
Tritanopia (blue-blind)
#005170
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #4020bb;
/* rgb */ color: rgb(64, 32, 187);
/* oklch */ color: oklch(41.0% 0.219 280.1);
Tailwind
colors: {
  custom: {
    50: '#8662d1',
    500: '#4020bb',
    950: '#000000',
  },
}
SCSS
$custom: #4020bb;
$custom-light: #8662d1;
$custom-dark: #000000;
JSON
{
  "hex": "#4020bb",
  "rgb": {
    "r": 64,
    "g": 32,
    "b": 187
  },
  "hsl": {
    "h": 252.387,
    "s": 70.776,
    "l": 42.941
  },
  "oklch": {
    "l": 0.41026,
    "c": 0.21895,
    "h": 280.1
  },
  "luminance": 0.05711
}

Semantic roles & 50–950 ramp

primary
#4020BB
secondary
#B8CD6A
accent
#EE3AC9
background
#F9F6FD
surface
#F1EBFA
border
#CBC6D3
text
#0D0514
muted
#7E7A83

Preview Lab

Preview with #4020BB

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

Preview Lab → · Contrast checker → · Palette generator →

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