#40083A#40083A

#40083A is a dark, moderate purple. Relative luminance 0.016; OKLCH L 26.4% C 0.104 H 333.0°. Best body text is #FFFFFF at 15.98:1 contrast (WCAG AA passes).

Color values

HEX#40083A
RGBrgb(64, 8, 58)
HSLhsl(306, 78%, 14%)
HSVhsv(306, 88%, 25%)
CMYKcmyk(0%, 87.5%, 9.4%, 74.9%)
CIE-LABlab(13.04, 32.21, -17.23)
CIE-LCHlch(13.04, 36.53, 331.86°)
OKLaboklab(26.42% 0.093 -0.0473)
OKLCHoklch(26.42% 0.104 333)
XYZxyz(2.9649, 1.5694, 4.1489)
Luminance0.0157 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40083A #08400E
analogous
#2A0840 #40083A #40081E
triadic
#40083A #3A4008 #083A40
tetradic
#40083A #402A08 #08400E #081E40
square
#40083A #402A08 #08400E #081E40
split-complementary
#40083A #1E4008 #08402A
monochromatic
#1B0319 #1B0319 #40083A #760F6B #AD169D

Accessibility & contrast

On white

15.98
#40083A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#40083A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40083A
15.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40083A#FFFFFF#000000##FFFFFF
##40083A1.0015.981.3115.98
#FFFFFF15.981.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF15.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#061D3B
Deuteranopia (green-blind)
#1B2439
Tritanopia (blue-blind)
#430E20
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #40083a;
/* rgb */ color: rgb(64, 8, 58);
/* oklch */ color: oklch(26.4% 0.104 333.0);
Tailwind
colors: {
  custom: {
    50: '#774f70',
    500: '#40083a',
    950: '#000000',
  },
}
SCSS
$custom: #40083a;
$custom-light: #774f70;
$custom-dark: #000000;
JSON
{
  "hex": "#40083a",
  "rgb": {
    "r": 64,
    "g": 8,
    "b": 58
  },
  "hsl": {
    "h": 306.429,
    "s": 77.778,
    "l": 14.118
  },
  "oklch": {
    "l": 0.26423,
    "c": 0.10437,
    "h": 333
  },
  "luminance": 0.01569
}

Semantic roles & 50–950 ramp

primary
#40083A
secondary
#257E2F
accent
#F44834
background
#F7F4F6
surface
#EDE7EC
border
#C8C3C7
text
#090207
muted
#7B787A

Preview Lab

Preview with #40083A

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

Preview Lab → · Contrast checker → · Palette generator →

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