#40093C#40093C

#40093C is a dark, moderate purple. Relative luminance 0.016; OKLCH L 26.7% C 0.105 H 331.3°. Best body text is #FFFFFF at 15.88:1 contrast (WCAG AA passes).

Color values

HEX#40093C
RGBrgb(64, 9, 60)
HSLhsl(304, 75%, 14%)
HSVhsv(304, 86%, 25%)
CMYKcmyk(0%, 85.9%, 6.2%, 74.9%)
CIE-LABlab(13.30, 32.20, -18.24)
CIE-LCHlch(13.30, 37.01, 330.46°)
OKLaboklab(26.65% 0.092 -0.0503)
OKLCHoklch(26.65% 0.105 331.3)
XYZxyz(3.0277, 1.6119, 4.4257)
Luminance0.0161 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40093C #09400D
analogous
#290940 #40093C #400921
triadic
#40093C #3C4009 #093C40
tetradic
#40093C #402909 #09400D #092140
square
#40093C #402909 #09400D #092140
split-complementary
#40093C #214009 #094029
monochromatic
#1B0419 #1B0419 #40093C #76116E #AB18A1

Accessibility & contrast

On white

15.88
#40093C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#40093C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40093C
15.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40093C#FFFFFF#000000##FFFFFF
##40093C1.0015.881.3215.88
#FFFFFF15.881.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#051D3D
Deuteranopia (green-blind)
#1B253B
Tritanopia (blue-blind)
#431022
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #40093c;
/* rgb */ color: rgb(64, 9, 60);
/* oklch */ color: oklch(26.7% 0.105 331.3);
Tailwind
colors: {
  custom: {
    50: '#775072',
    500: '#40093c',
    950: '#000000',
  },
}
SCSS
$custom: #40093c;
$custom-light: #775072;
$custom-dark: #000000;
JSON
{
  "hex": "#40093c",
  "rgb": {
    "r": 64,
    "g": 9,
    "b": 60
  },
  "hsl": {
    "h": 304.364,
    "s": 75.342,
    "l": 14.314
  },
  "oklch": {
    "l": 0.2665,
    "c": 0.10483,
    "h": 331.3
  },
  "luminance": 0.01612
}

Semantic roles & 50–950 ramp

primary
#40093C
secondary
#277E2D
accent
#F24436
background
#F7F4F6
surface
#EDE7EC
border
#C8C3C7
text
#090208
muted
#7B787B

Preview Lab

Preview with #40093C

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

Preview Lab → · Contrast checker → · Palette generator →

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