#40143B#40143B

#40143B is a dark, moderate purple. Relative luminance 0.019; OKLCH L 27.9% C 0.088 H 332.3°. Best body text is #FFFFFF at 15.20:1 contrast (WCAG AA passes).

Color values

HEX#40143B
RGBrgb(64, 20, 59)
HSLhsl(307, 52%, 16%)
HSVhsv(307, 69%, 25%)
CMYKcmyk(0%, 68.8%, 7.8%, 74.9%)
CIE-LABlab(14.99, 27.10, -14.88)
CIE-LCHlch(14.99, 30.92, 331.23°)
OKLaboklab(27.85% 0.0777 -0.0407)
OKLCHoklch(27.85% 0.088 332.3)
XYZxyz(3.1539, 1.9063, 4.3387)
Luminance0.0191 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40143B #144019
analogous
#2F1440 #40143B #401425
triadic
#40143B #3B4014 #143B40
tetradic
#40143B #402F14 #144019 #142540
square
#40143B #402F14 #144019 #142540
split-complementary
#40143B #254014 #14402F
monochromatic
#170715 #170715 #40143B #6F2366 #9D3191

Accessibility & contrast

On white

15.20
#40143B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#40143B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40143B
15.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40143B#FFFFFF#000000##FFFFFF
##40143B1.0015.201.3815.20
#FFFFFF15.201.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.201.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #40143b;
/* rgb */ color: rgb(64, 20, 59);
/* oklch */ color: oklch(27.9% 0.088 332.3);
Tailwind
colors: {
  custom: {
    50: '#775571',
    500: '#40143b',
    950: '#000000',
  },
}
SCSS
$custom: #40143b;
$custom-light: #775571;
$custom-dark: #000000;
JSON
{
  "hex": "#40143b",
  "rgb": {
    "r": 64,
    "g": 20,
    "b": 59
  },
  "hsl": {
    "h": 306.818,
    "s": 52.381,
    "l": 16.471
  },
  "oklch": {
    "l": 0.2785,
    "c": 0.08771,
    "h": 332.3
  },
  "luminance": 0.01906
}

Semantic roles & 50–950 ramp

primary
#40143B
secondary
#38783F
accent
#DC5C4C
background
#F7F5F6
surface
#EDE9EC
border
#C8C5C7
text
#090307
muted
#7B787A

Preview Lab

Preview with #40143B

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

Preview Lab → · Contrast checker → · Palette generator →

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