#40073F#40073F

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

Color values

HEX#40073F
RGBrgb(64, 7, 63)
HSLhsl(301, 80%, 14%)
HSVhsv(301, 89%, 25%)
CMYKcmyk(0%, 89.1%, 1.6%, 74.9%)
CIE-LABlab(13.24, 33.52, -20.48)
CIE-LCHlch(13.24, 39.28, 328.57°)
OKLaboklab(26.67% 0.0942 -0.0567)
OKLCHoklch(26.67% 0.11 328.9)
XYZxyz(3.0875, 1.6011, 4.8481)
Luminance0.0160 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40073F #074008
analogous
#250740 #40073F #400723
triadic
#40073F #3F4007 #073F40
tetradic
#40073F #402507 #074008 #072340
square
#40073F #402507 #074008 #072340
split-complementary
#40073F #234007 #074025
monochromatic
#1C031B #1C031B #40073F #770D75 #AE13AC

Accessibility & contrast

On white

15.91
#40073F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#40073F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40073F
15.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40073F#FFFFFF#000000##FFFFFF
##40073F1.0015.911.3215.91
#FFFFFF15.911.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D40
Deuteranopia (green-blind)
#18253E
Tritanopia (blue-blind)
#431023
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #40073f;
/* rgb */ color: rgb(64, 7, 63);
/* oklch */ color: oklch(26.7% 0.110 328.9);
Tailwind
colors: {
  custom: {
    50: '#774f74',
    500: '#40073f',
    950: '#000000',
  },
}
SCSS
$custom: #40073f;
$custom-light: #774f74;
$custom-dark: #000000;
JSON
{
  "hex": "#40073f",
  "rgb": {
    "r": 64,
    "g": 7,
    "b": 63
  },
  "hsl": {
    "h": 301.053,
    "s": 80.282,
    "l": 13.922
  },
  "oklch": {
    "l": 0.26667,
    "c": 0.10993,
    "h": 328.9
  },
  "luminance": 0.01601
}

Semantic roles & 50–950 ramp

primary
#40073F
secondary
#247F25
accent
#F73531
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#090208
muted
#7B787B

Preview Lab

Preview with #40073F

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

Preview Lab → · Contrast checker → · Palette generator →

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