#40083F#40083F

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

Color values

HEX#40083F
RGBrgb(64, 8, 63)
HSLhsl(301, 78%, 14%)
HSVhsv(301, 88%, 25%)
CMYKcmyk(0%, 87.5%, 1.6%, 74.9%)
CIE-LABlab(13.37, 33.14, -20.27)
CIE-LCHlch(13.37, 38.84, 328.55°)
OKLaboklab(26.76% 0.0931 -0.0561)
OKLCHoklch(26.76% 0.109 328.9)
XYZxyz(3.0984, 1.6228, 4.8517)
Luminance0.0162 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40083F #084009
analogous
#250840 #40083F #400823
triadic
#40083F #3F4008 #083F40
tetradic
#40083F #402508 #084009 #082340
square
#40083F #402508 #084009 #082340
split-complementary
#40083F #234008 #084025
monochromatic
#1B031B #1B031B #40083F #760F75 #AD16AA

Accessibility & contrast

On white

15.85
#40083F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40083F
15.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40083F#FFFFFF#000000##FFFFFF
##40083F1.0015.851.3215.85
#FFFFFF15.851.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#011E40
Deuteranopia (green-blind)
#19253E
Tritanopia (blue-blind)
#421123
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #40083f;
/* rgb */ color: rgb(64, 8, 63);
/* oklch */ color: oklch(26.8% 0.109 328.9);
Tailwind
colors: {
  custom: {
    50: '#774f74',
    500: '#40083f',
    950: '#000000',
  },
}
SCSS
$custom: #40083f;
$custom-light: #774f74;
$custom-dark: #000000;
JSON
{
  "hex": "#40083f",
  "rgb": {
    "r": 64,
    "g": 8,
    "b": 63
  },
  "hsl": {
    "h": 301.071,
    "s": 77.778,
    "l": 14.118
  },
  "oklch": {
    "l": 0.26761,
    "c": 0.10868,
    "h": 328.9
  },
  "luminance": 0.01623
}

Semantic roles & 50–950 ramp

primary
#40083F
secondary
#257E27
accent
#F43734
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#090208
muted
#7B787B

Preview Lab

Preview with #40083F

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

Preview Lab → · Contrast checker → · Palette generator →

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