#40093F#40093F

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

Color values

HEX#40093F
RGBrgb(64, 9, 63)
HSLhsl(301, 75%, 14%)
HSVhsv(301, 86%, 25%)
CMYKcmyk(0%, 85.9%, 1.6%, 74.9%)
CIE-LABlab(13.50, 32.76, -20.06)
CIE-LCHlch(13.50, 38.41, 328.52°)
OKLaboklab(26.85% 0.092 -0.0555)
OKLCHoklch(26.85% 0.107 328.9)
XYZxyz(3.1092, 1.6445, 4.8553)
Luminance0.0164 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40093F #09400A
analogous
#260940 #40093F #400924
triadic
#40093F #3F4009 #093F40
tetradic
#40093F #402609 #09400A #092440
square
#40093F #402609 #09400A #092440
split-complementary
#40093F #244009 #094026
monochromatic
#1B041A #1B041A #40093F #761174 #AB18A9

Accessibility & contrast

On white

15.80
#40093F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40093F
15.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40093F#FFFFFF#000000##FFFFFF
##40093F1.0015.801.3315.80
#FFFFFF15.801.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#021E40
Deuteranopia (green-blind)
#19253E
Tritanopia (blue-blind)
#421224
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #40093f;
/* rgb */ color: rgb(64, 9, 63);
/* oklch */ color: oklch(26.9% 0.107 328.9);
Tailwind
colors: {
  custom: {
    50: '#775074',
    500: '#40093f',
    950: '#000000',
  },
}
SCSS
$custom: #40093f;
$custom-light: #775074;
$custom-dark: #000000;
JSON
{
  "hex": "#40093f",
  "rgb": {
    "r": 64,
    "g": 9,
    "b": 63
  },
  "hsl": {
    "h": 301.091,
    "s": 75.342,
    "l": 14.314
  },
  "oklch": {
    "l": 0.26854,
    "c": 0.10746,
    "h": 328.9
  },
  "luminance": 0.01644
}

Semantic roles & 50–950 ramp

primary
#40093F
secondary
#277E29
accent
#F23936
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#090208
muted
#7B787B

Preview Lab

Preview with #40093F

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

Preview Lab → · Contrast checker → · Palette generator →

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