#40093E#40093E

#40093E is a dark, moderate purple. Relative luminance 0.016; OKLCH L 26.8% C 0.107 H 329.7°. Best body text is #FFFFFF at 15.83:1 contrast (WCAG AA passes).

Color values

HEX#40093E
RGBrgb(64, 9, 62)
HSLhsl(302, 75%, 14%)
HSVhsv(302, 86%, 25%)
CMYKcmyk(0%, 85.9%, 3.1%, 74.9%)
CIE-LABlab(13.43, 32.57, -19.46)
CIE-LCHlch(13.43, 37.94, 329.14°)
OKLaboklab(26.78% 0.092 -0.0538)
OKLCHoklch(26.78% 0.107 329.7)
XYZxyz(3.0815, 1.6334, 4.7095)
Luminance0.0163 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40093E #09400B
analogous
#270940 #40093E #400923
triadic
#40093E #3E4009 #093E40
tetradic
#40093E #402709 #09400B #092340
square
#40093E #402709 #09400B #092340
split-complementary
#40093E #234009 #094027
monochromatic
#1B041A #1B041A #40093E #761172 #AB18A6

Accessibility & contrast

On white

15.83
#40093E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#40093E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40093E
15.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40093E#FFFFFF#000000##FFFFFF
##40093E1.0015.831.3315.83
#FFFFFF15.831.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#031E3F
Deuteranopia (green-blind)
#1A253D
Tritanopia (blue-blind)
#431123
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #40093e;
/* rgb */ color: rgb(64, 9, 62);
/* oklch */ color: oklch(26.8% 0.107 329.7);
Tailwind
colors: {
  custom: {
    50: '#775073',
    500: '#40093e',
    950: '#000000',
  },
}
SCSS
$custom: #40093e;
$custom-light: #775073;
$custom-dark: #000000;
JSON
{
  "hex": "#40093e",
  "rgb": {
    "r": 64,
    "g": 9,
    "b": 62
  },
  "hsl": {
    "h": 302.182,
    "s": 75.342,
    "l": 14.314
  },
  "oklch": {
    "l": 0.26785,
    "c": 0.10658,
    "h": 329.7
  },
  "luminance": 0.01633
}

Semantic roles & 50–950 ramp

primary
#40093E
secondary
#277E2A
accent
#F23D36
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#090208
muted
#7B787B

Preview Lab

Preview with #40093E

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

Preview Lab → · Contrast checker → · Palette generator →

#40093E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva