#40209C#40209C

#40209C is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.7% C 0.184 H 285.3°. Best body text is #FFFFFF at 11.03:1 contrast (WCAG AA passes).

Color values

HEX#40209C
RGBrgb(64, 32, 156)
HSLhsl(255, 66%, 37%)
HSVhsv(255, 79%, 61%)
CMYKcmyk(59%, 79.5%, 0%, 38.8%)
CIE-LABlab(25.33, 46.58, -61.53)
CIE-LCHlch(25.33, 77.17, 307.13°)
OKLaboklab(37.73% 0.0485 -0.1772)
OKLCHoklch(37.73% 0.184 285.3)
XYZxyz(8.6298, 4.5228, 31.8643)
Luminance0.0452 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40209C #7C9C20
analogous
#203E9C #40209C #7E209C
triadic
#40209C #9C4020 #209C40
tetradic
#40209C #9C203E #7C9C20 #209C7E
square
#40209C #9C203E #7C9C20 #209C7E
split-complementary
#40209C #9C7E20 #3E9C20
monochromatic
#160B36 #2B1669 #40209C #552ACF #7B59DD

Accessibility & contrast

On white

11.03
#40209C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40209C
11.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40209C#FFFFFF#000000##FFFFFF
##40209C1.0011.031.9011.03
#FFFFFF11.031.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9F
Deuteranopia (green-blind)
#00389A
Tritanopia (blue-blind)
#0C445E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #40209c;
/* rgb */ color: rgb(64, 32, 156);
/* oklch */ color: oklch(37.7% 0.184 285.3);
Tailwind
colors: {
  custom: {
    50: '#8060ba',
    500: '#40209c',
    950: '#000000',
  },
}
SCSS
$custom: #40209c;
$custom-light: #8060ba;
$custom-dark: #000000;
JSON
{
  "hex": "#40209c",
  "rgb": {
    "r": 64,
    "g": 32,
    "b": 156
  },
  "hsl": {
    "h": 255.484,
    "s": 65.957,
    "l": 36.863
  },
  "oklch": {
    "l": 0.3773,
    "c": 0.18376,
    "h": 285.3
  },
  "luminance": 0.04523
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #40209C

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

Preview Lab → · Contrast checker → · Palette generator →

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