#40183D#40183D

#40183D is a dark, moderate purple. Relative luminance 0.021; OKLCH L 28.6% C 0.082 H 330.4°. Best body text is #FFFFFF at 14.83:1 contrast (WCAG AA passes).

Color values

HEX#40183D
RGBrgb(64, 24, 61)
HSLhsl(305, 45%, 17%)
HSVhsv(305, 63%, 25%)
CMYKcmyk(0%, 62.5%, 4.7%, 74.9%)
CIE-LABlab(15.90, 25.32, -14.86)
CIE-LCHlch(15.90, 29.36, 329.59°)
OKLaboklab(28.56% 0.0717 -0.0407)
OKLCHoklch(28.56% 0.082 330.4)
XYZxyz(3.2833, 2.0804, 4.6426)
Luminance0.0208 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40183D #18401B
analogous
#2F1840 #40183D #401829
triadic
#40183D #3D4018 #183D40
tetradic
#40183D #402F18 #18401B #182940
square
#40183D #402F18 #18401B #182940
split-complementary
#40183D #294018 #18402F
monochromatic
#160815 #160815 #40183D #6D2967 #993992

Accessibility & contrast

On white

14.83
#40183D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#40183D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40183D
14.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40183D#FFFFFF#000000##FFFFFF
##40183D1.0014.831.4214.83
#FFFFFF14.831.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16243E
Deuteranopia (green-blind)
#222A3C
Tritanopia (blue-blind)
#431C27
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #40183d;
/* rgb */ color: rgb(64, 24, 61);
/* oklch */ color: oklch(28.6% 0.082 330.4);
Tailwind
colors: {
  custom: {
    50: '#765772',
    500: '#40183d',
    950: '#000000',
  },
}
SCSS
$custom: #40183d;
$custom-light: #765772;
$custom-dark: #000000;
JSON
{
  "hex": "#40183d",
  "rgb": {
    "r": 64,
    "g": 24,
    "b": 61
  },
  "hsl": {
    "h": 304.5,
    "s": 45.455,
    "l": 17.255
  },
  "oklch": {
    "l": 0.28557,
    "c": 0.08247,
    "h": 330.4
  },
  "luminance": 0.0208
}

Semantic roles & 50–950 ramp

primary
#40183D
secondary
#3D7742
accent
#D55C53
background
#F7F5F6
surface
#EDE9EC
border
#C8C5C7
text
#090308
muted
#7B787B

Preview Lab

Preview with #40183D

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

Preview Lab → · Contrast checker → · Palette generator →

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