#40073E#40073E

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

Color values

HEX#40073E
RGBrgb(64, 7, 62)
HSLhsl(302, 80%, 14%)
HSVhsv(302, 89%, 25%)
CMYKcmyk(0%, 89.1%, 3.1%, 74.9%)
CIE-LABlab(13.17, 33.33, -19.88)
CIE-LCHlch(13.17, 38.81, 329.19°)
OKLaboklab(26.6% 0.0942 -0.055)
OKLCHoklch(26.6% 0.109 329.7)
XYZxyz(3.0598, 1.5900, 4.7022)
Luminance0.0159 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40073E #074009
analogous
#260740 #40073E #400722
triadic
#40073E #3E4007 #073E40
tetradic
#40073E #402607 #074009 #072240
square
#40073E #402607 #074009 #072240
split-complementary
#40073E #224007 #074026
monochromatic
#1C031B #1C031B #40073E #770D73 #AE13A9

Accessibility & contrast

On white

15.93
#40073E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40073E
15.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40073E#FFFFFF#000000##FFFFFF
##40073E1.0015.931.3215.93
#FFFFFF15.931.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#011D3F
Deuteranopia (green-blind)
#19253D
Tritanopia (blue-blind)
#431022
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #40073e;
/* rgb */ color: rgb(64, 7, 62);
/* oklch */ color: oklch(26.6% 0.109 329.7);
Tailwind
colors: {
  custom: {
    50: '#774f73',
    500: '#40073e',
    950: '#000000',
  },
}
SCSS
$custom: #40073e;
$custom-light: #774f73;
$custom-dark: #000000;
JSON
{
  "hex": "#40073e",
  "rgb": {
    "r": 64,
    "g": 7,
    "b": 62
  },
  "hsl": {
    "h": 302.105,
    "s": 80.282,
    "l": 13.922
  },
  "oklch": {
    "l": 0.26598,
    "c": 0.10906,
    "h": 329.7
  },
  "luminance": 0.0159
}

Semantic roles & 50–950 ramp

primary
#40073E
secondary
#247F27
accent
#F73831
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#090208
muted
#7B787B

Preview Lab

Preview with #40073E

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

Preview Lab → · Contrast checker → · Palette generator →

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