#40083B#40083B

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

Color values

HEX#40083B
RGBrgb(64, 8, 59)
HSLhsl(305, 78%, 14%)
HSVhsv(305, 88%, 25%)
CMYKcmyk(0%, 87.5%, 7.8%, 74.9%)
CIE-LABlab(13.11, 32.39, -17.84)
CIE-LCHlch(13.11, 36.98, 331.15°)
OKLaboklab(26.49% 0.0931 -0.0491)
OKLCHoklch(26.49% 0.105 332.2)
XYZxyz(2.9906, 1.5797, 4.2842)
Luminance0.0158 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40083B #08400D
analogous
#290840 #40083B #40081F
triadic
#40083B #3B4008 #083B40
tetradic
#40083B #402908 #08400D #081F40
square
#40083B #402908 #08400D #081F40
split-complementary
#40083B #1F4008 #084029
monochromatic
#1B0319 #1B0319 #40083B #760F6D #AD169F

Accessibility & contrast

On white

15.96
#40083B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40083B
15.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40083B#FFFFFF#000000##FFFFFF
##40083B1.0015.961.3215.96
#FFFFFF15.961.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#051D3C
Deuteranopia (green-blind)
#1B243A
Tritanopia (blue-blind)
#430F21
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #40083b;
/* rgb */ color: rgb(64, 8, 59);
/* oklch */ color: oklch(26.5% 0.105 332.2);
Tailwind
colors: {
  custom: {
    50: '#774f71',
    500: '#40083b',
    950: '#000000',
  },
}
SCSS
$custom: #40083b;
$custom-light: #774f71;
$custom-dark: #000000;
JSON
{
  "hex": "#40083b",
  "rgb": {
    "r": 64,
    "g": 8,
    "b": 59
  },
  "hsl": {
    "h": 305.357,
    "s": 77.778,
    "l": 14.118
  },
  "oklch": {
    "l": 0.26489,
    "c": 0.10522,
    "h": 332.2
  },
  "luminance": 0.01579
}

Semantic roles & 50–950 ramp

primary
#40083B
secondary
#257E2D
accent
#F44534
background
#F7F4F6
surface
#EDE7EC
border
#C8C3C7
text
#090207
muted
#7B787A

Preview Lab

Preview with #40083B

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

Preview Lab → · Contrast checker → · Palette generator →

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