#40209A#40209A

#40209A is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.5% C 0.181 H 285.7°. Best body text is #FFFFFF at 11.10:1 contrast (WCAG AA passes).

Color values

HEX#40209A
RGBrgb(64, 32, 154)
HSLhsl(256, 66%, 36%)
HSVhsv(256, 79%, 60%)
CMYKcmyk(58.4%, 79.2%, 0%, 39.6%)
CIE-LABlab(25.12, 46.00, -60.64)
CIE-LCHlch(25.12, 76.11, 307.18°)
OKLaboklab(37.53% 0.0491 -0.1747)
OKLCHoklch(37.53% 0.181 285.7)
XYZxyz(8.4618, 4.4556, 30.9797)
Luminance0.0446 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40209A #7A9A20
analogous
#203D9A #40209A #7D209A
triadic
#40209A #9A4020 #209A40
tetradic
#40209A #9A203D #7A9A20 #209A7D
square
#40209A #9A203D #7A9A20 #209A7D
split-complementary
#40209A #9A7D20 #3D9A20
monochromatic
#160B35 #2B1567 #40209A #552BCD #7B58DC

Accessibility & contrast

On white

11.10
#40209A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#40209A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40209A
11.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40209A#FFFFFF#000000##FFFFFF
##40209A1.0011.101.8911.10
#FFFFFF11.101.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9D
Deuteranopia (green-blind)
#003898
Tritanopia (blue-blind)
#11445D
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #40209a;
/* rgb */ color: rgb(64, 32, 154);
/* oklch */ color: oklch(37.5% 0.181 285.7);
Tailwind
colors: {
  custom: {
    50: '#8060b9',
    500: '#40209a',
    950: '#000000',
  },
}
SCSS
$custom: #40209a;
$custom-light: #8060b9;
$custom-dark: #000000;
JSON
{
  "hex": "#40209a",
  "rgb": {
    "r": 64,
    "g": 32,
    "b": 154
  },
  "hsl": {
    "h": 255.738,
    "s": 65.591,
    "l": 36.471
  },
  "oklch": {
    "l": 0.37525,
    "c": 0.18144,
    "h": 285.7
  },
  "luminance": 0.04456
}

Semantic roles & 50–950 ramp

primary
#40209A
secondary
#A4C056
accent
#E93FBC
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #40209A

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

Preview Lab → · Contrast checker → · Palette generator →

#40209A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva