#40153B#40153B

#40153B is a dark, moderate purple. Relative luminance 0.019; OKLCH L 28.0% C 0.086 H 332.4°. Best body text is #FFFFFF at 15.13:1 contrast (WCAG AA passes).

Color values

HEX#40153B
RGBrgb(64, 21, 59)
HSLhsl(307, 51%, 17%)
HSVhsv(307, 67%, 25%)
CMYKcmyk(0%, 67.2%, 7.8%, 74.9%)
CIE-LABlab(15.18, 26.57, -14.58)
CIE-LCHlch(15.18, 30.31, 331.24°)
OKLaboklab(27.99% 0.0762 -0.0398)
OKLCHoklch(27.99% 0.086 332.4)
XYZxyz(3.1719, 1.9423, 4.3447)
Luminance0.0194 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40153B #15401A
analogous
#301540 #40153B #401526
triadic
#40153B #3B4015 #153B40
tetradic
#40153B #403015 #15401A #152640
square
#40153B #403015 #15401A #152640
split-complementary
#40153B #264015 #154030
monochromatic
#170815 #170815 #40153B #6E2465 #9C3390

Accessibility & contrast

On white

15.13
#40153B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#40153B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40153B
15.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40153B#FFFFFF#000000##FFFFFF
##40153B1.0015.131.3915.13
#FFFFFF15.131.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#13223C
Deuteranopia (green-blind)
#21283A
Tritanopia (blue-blind)
#431825
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #40153b;
/* rgb */ color: rgb(64, 21, 59);
/* oklch */ color: oklch(28.0% 0.086 332.4);
Tailwind
colors: {
  custom: {
    50: '#765571',
    500: '#40153b',
    950: '#000000',
  },
}
SCSS
$custom: #40153b;
$custom-light: #765571;
$custom-dark: #000000;
JSON
{
  "hex": "#40153b",
  "rgb": {
    "r": 64,
    "g": 21,
    "b": 59
  },
  "hsl": {
    "h": 306.977,
    "s": 50.588,
    "l": 16.667
  },
  "oklch": {
    "l": 0.27992,
    "c": 0.08595,
    "h": 332.4
  },
  "luminance": 0.01942
}

Semantic roles & 50–950 ramp

primary
#40153B
secondary
#397840
accent
#DA5E4E
background
#F7F5F6
surface
#EDE9EC
border
#C8C5C7
text
#090307
muted
#7B787A

Preview Lab

Preview with #40153B

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

Preview Lab → · Contrast checker → · Palette generator →

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