#40183C#40183C

#40183C is a dark, moderate purple. Relative luminance 0.021; OKLCH L 28.5% C 0.081 H 331.4°. Best body text is #FFFFFF at 14.85:1 contrast (WCAG AA passes).

Color values

HEX#40183C
RGBrgb(64, 24, 60)
HSLhsl(306, 45%, 17%)
HSVhsv(306, 63%, 25%)
CMYKcmyk(0%, 62.5%, 6.2%, 74.9%)
CIE-LABlab(15.85, 25.12, -14.25)
CIE-LCHlch(15.85, 28.88, 330.44°)
OKLaboklab(28.5% 0.0715 -0.0389)
OKLCHoklch(28.5% 0.081 331.4)
XYZxyz(3.2566, 2.0697, 4.5021)
Luminance0.0207 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40183C #18401C
analogous
#301840 #40183C #401828
triadic
#40183C #3C4018 #183C40
tetradic
#40183C #403018 #18401C #182840
square
#40183C #403018 #18401C #182840
split-complementary
#40183C #284018 #184030
monochromatic
#160815 #160815 #40183C #6D2966 #99398F

Accessibility & contrast

On white

14.85
#40183C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#40183C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40183C
14.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40183C#FFFFFF#000000##FFFFFF
##40183C1.0014.851.4114.85
#FFFFFF14.851.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16243D
Deuteranopia (green-blind)
#22293B
Tritanopia (blue-blind)
#431B27
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #40183c;
/* rgb */ color: rgb(64, 24, 60);
/* oklch */ color: oklch(28.5% 0.081 331.4);
Tailwind
colors: {
  custom: {
    50: '#765772',
    500: '#40183c',
    950: '#000000',
  },
}
SCSS
$custom: #40183c;
$custom-light: #765772;
$custom-dark: #000000;
JSON
{
  "hex": "#40183c",
  "rgb": {
    "r": 64,
    "g": 24,
    "b": 60
  },
  "hsl": {
    "h": 306,
    "s": 45.455,
    "l": 17.255
  },
  "oklch": {
    "l": 0.28499,
    "c": 0.08145,
    "h": 331.4
  },
  "luminance": 0.0207
}

Semantic roles & 50–950 ramp

primary
#40183C
secondary
#3D7743
accent
#D56053
background
#F7F5F6
surface
#EDE9EC
border
#C8C5C7
text
#090307
muted
#7B787A

Preview Lab

Preview with #40183C

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

Preview Lab → · Contrast checker → · Palette generator →

#40183C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva