#40209B#40209B

#40209B is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.6% C 0.183 H 285.5°. Best body text is #FFFFFF at 11.06:1 contrast (WCAG AA passes).

Color values

HEX#40209B
RGBrgb(64, 32, 155)
HSLhsl(256, 66%, 37%)
HSVhsv(256, 79%, 61%)
CMYKcmyk(58.7%, 79.4%, 0%, 39.2%)
CIE-LABlab(25.23, 46.29, -61.08)
CIE-LCHlch(25.23, 76.64, 307.16°)
OKLaboklab(37.63% 0.0488 -0.176)
OKLCHoklch(37.63% 0.183 285.5)
XYZxyz(8.5455, 4.4891, 31.4202)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40209B #7B9B20
analogous
#203E9B #40209B #7E209B
triadic
#40209B #9B4020 #209B40
tetradic
#40209B #9B203E #7B9B20 #209B7E
square
#40209B #9B203E #7B9B20 #209B7E
split-complementary
#40209B #9B7E20 #3E9B20
monochromatic
#160B36 #2B1668 #40209B #552ACE #7B59DD

Accessibility & contrast

On white

11.06
#40209B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#40209B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40209B
11.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40209B#FFFFFF#000000##FFFFFF
##40209B1.0011.061.9011.06
#FFFFFF11.061.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9E
Deuteranopia (green-blind)
#003899
Tritanopia (blue-blind)
#0F445D
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #40209b;
/* rgb */ color: rgb(64, 32, 155);
/* oklch */ color: oklch(37.6% 0.183 285.5);
Tailwind
colors: {
  custom: {
    50: '#8060ba',
    500: '#40209b',
    950: '#000000',
  },
}
SCSS
$custom: #40209b;
$custom-light: #8060ba;
$custom-dark: #000000;
JSON
{
  "hex": "#40209b",
  "rgb": {
    "r": 64,
    "g": 32,
    "b": 155
  },
  "hsl": {
    "h": 255.61,
    "s": 65.775,
    "l": 36.667
  },
  "oklch": {
    "l": 0.37627,
    "c": 0.1826,
    "h": 285.5
  },
  "luminance": 0.0449
}

Semantic roles & 50–950 ramp

primary
#40209B
secondary
#A5C156
accent
#E93FBD
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #40209B

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

Preview Lab → · Contrast checker → · Palette generator →

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