#40083E#40083E

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

Color values

HEX#40083E
RGBrgb(64, 8, 62)
HSLhsl(302, 78%, 14%)
HSVhsv(302, 88%, 25%)
CMYKcmyk(0%, 87.5%, 3.1%, 74.9%)
CIE-LABlab(13.30, 32.95, -19.67)
CIE-LCHlch(13.30, 38.37, 329.17°)
OKLaboklab(26.69% 0.0931 -0.0544)
OKLCHoklch(26.69% 0.108 329.7)
XYZxyz(3.0707, 1.6117, 4.7059)
Luminance0.0161 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40083E #08400A
analogous
#260840 #40083E #400822
triadic
#40083E #3E4008 #083E40
tetradic
#40083E #402608 #08400A #082240
square
#40083E #402608 #08400A #082240
split-complementary
#40083E #224008 #084026
monochromatic
#1B031A #1B031A #40083E #760F73 #AD16A7

Accessibility & contrast

On white

15.88
#40083E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40083E
15.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40083E#FFFFFF#000000##FFFFFF
##40083E1.0015.881.3215.88
#FFFFFF15.881.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.881.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #40083e;
/* rgb */ color: rgb(64, 8, 62);
/* oklch */ color: oklch(26.7% 0.108 329.7);
Tailwind
colors: {
  custom: {
    50: '#774f73',
    500: '#40083e',
    950: '#000000',
  },
}
SCSS
$custom: #40083e;
$custom-light: #774f73;
$custom-dark: #000000;
JSON
{
  "hex": "#40083e",
  "rgb": {
    "r": 64,
    "g": 8,
    "b": 62
  },
  "hsl": {
    "h": 302.143,
    "s": 77.778,
    "l": 14.118
  },
  "oklch": {
    "l": 0.26692,
    "c": 0.10781,
    "h": 329.7
  },
  "luminance": 0.01611
}

Semantic roles & 50–950 ramp

primary
#40083E
secondary
#257E28
accent
#F43A34
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#090208
muted
#7B787B

Preview Lab

Preview with #40083E

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

Preview Lab → · Contrast checker → · Palette generator →

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