#40083D#40083D

#40083D is a dark, moderate purple. Relative luminance 0.016; OKLCH L 26.6% C 0.107 H 330.5°. Best body text is #FFFFFF at 15.91:1 contrast (WCAG AA passes).

Color values

HEX#40083D
RGBrgb(64, 8, 61)
HSLhsl(303, 78%, 14%)
HSVhsv(303, 88%, 25%)
CMYKcmyk(0%, 87.5%, 4.7%, 74.9%)
CIE-LABlab(13.23, 32.76, -19.06)
CIE-LCHlch(13.23, 37.90, 329.81°)
OKLaboklab(26.62% 0.0931 -0.0526)
OKLCHoklch(26.62% 0.107 330.5)
XYZxyz(3.0435, 1.6008, 4.5627)
Luminance0.0160 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40083D #08400B
analogous
#270840 #40083D #400821
triadic
#40083D #3D4008 #083D40
tetradic
#40083D #402708 #08400B #082140
square
#40083D #402708 #08400B #082140
split-complementary
#40083D #214008 #084027
monochromatic
#1B031A #1B031A #40083D #760F71 #AD16A5

Accessibility & contrast

On white

15.91
#40083D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40083D
15.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40083D#FFFFFF#000000##FFFFFF
##40083D1.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)
#031D3E
Deuteranopia (green-blind)
#1A253C
Tritanopia (blue-blind)
#431022
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #40083d;
/* rgb */ color: rgb(64, 8, 61);
/* oklch */ color: oklch(26.6% 0.107 330.5);
Tailwind
colors: {
  custom: {
    50: '#774f73',
    500: '#40083d',
    950: '#000000',
  },
}
SCSS
$custom: #40083d;
$custom-light: #774f73;
$custom-dark: #000000;
JSON
{
  "hex": "#40083d",
  "rgb": {
    "r": 64,
    "g": 8,
    "b": 61
  },
  "hsl": {
    "h": 303.214,
    "s": 77.778,
    "l": 14.118
  },
  "oklch": {
    "l": 0.26623,
    "c": 0.10694,
    "h": 330.5
  },
  "luminance": 0.01601
}

Semantic roles & 50–950 ramp

primary
#40083D
secondary
#257E2A
accent
#F43E34
background
#F7F4F6
surface
#EDE7EC
border
#C8C3C7
text
#090208
muted
#7B787B

Preview Lab

Preview with #40083D

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

Preview Lab → · Contrast checker → · Palette generator →

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