#40073B#40073B

#40073B is a dark, moderate purple. Relative luminance 0.016; OKLCH L 26.4% C 0.106 H 332.2°. Best body text is #FFFFFF at 16.01:1 contrast (WCAG AA passes).

Color values

HEX#40073B
RGBrgb(64, 7, 59)
HSLhsl(305, 80%, 14%)
HSVhsv(305, 89%, 25%)
CMYKcmyk(0%, 89.1%, 7.8%, 74.9%)
CIE-LABlab(12.97, 32.78, -18.05)
CIE-LCHlch(12.97, 37.42, 331.16°)
OKLaboklab(26.39% 0.0942 -0.0497)
OKLCHoklch(26.39% 0.106 332.2)
XYZxyz(2.9798, 1.5580, 4.2806)
Luminance0.0156 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40073B #07400C
analogous
#290740 #40073B #40071F
triadic
#40073B #3B4007 #073B40
tetradic
#40073B #402907 #07400C #071F40
square
#40073B #402907 #07400C #071F40
split-complementary
#40073B #1F4007 #074029
monochromatic
#1C0319 #1C0319 #40073B #770D6E #AE13A1

Accessibility & contrast

On white

16.01
#40073B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#40073B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40073B
16.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40073B#FFFFFF#000000##FFFFFF
##40073B1.0016.011.3116.01
#FFFFFF16.011.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#041C3C
Deuteranopia (green-blind)
#1B243A
Tritanopia (blue-blind)
#430E21
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #40073b;
/* rgb */ color: rgb(64, 7, 59);
/* oklch */ color: oklch(26.4% 0.106 332.2);
Tailwind
colors: {
  custom: {
    50: '#774f71',
    500: '#40073b',
    950: '#000000',
  },
}
SCSS
$custom: #40073b;
$custom-light: #774f71;
$custom-dark: #000000;
JSON
{
  "hex": "#40073b",
  "rgb": {
    "r": 64,
    "g": 7,
    "b": 59
  },
  "hsl": {
    "h": 305.263,
    "s": 80.282,
    "l": 13.922
  },
  "oklch": {
    "l": 0.26393,
    "c": 0.10649,
    "h": 332.2
  },
  "luminance": 0.01558
}

Semantic roles & 50–950 ramp

primary
#40073B
secondary
#247F2C
accent
#F74231
background
#F7F4F6
surface
#EDE7EC
border
#C8C3C7
text
#090207
muted
#7B787A

Preview Lab

Preview with #40073B

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

Preview Lab → · Contrast checker → · Palette generator →

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