#40183A#40183A

#40183A is a dark, moderate purple. Relative luminance 0.020; OKLCH L 28.4% C 0.079 H 333.6°. Best body text is #FFFFFF at 14.90:1 contrast (WCAG AA passes).

Color values

HEX#40183A
RGBrgb(64, 24, 58)
HSLhsl(309, 45%, 17%)
HSVhsv(309, 63%, 25%)
CMYKcmyk(0%, 62.5%, 9.4%, 74.9%)
CIE-LABlab(15.74, 24.71, -13.00)
CIE-LCHlch(15.74, 27.92, 332.25°)
OKLaboklab(28.39% 0.0711 -0.0354)
OKLCHoklch(28.39% 0.079 333.6)
XYZxyz(3.2047, 2.0490, 4.2289)
Luminance0.0205 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40183A #18401E
analogous
#321840 #40183A #401826
triadic
#40183A #3A4018 #183A40
tetradic
#40183A #403218 #18401E #182640
square
#40183A #403218 #18401E #182640
split-complementary
#40183A #264018 #184032
monochromatic
#160814 #160814 #40183A #6D2962 #99398B

Accessibility & contrast

On white

14.90
#40183A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40183A
14.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40183A#FFFFFF#000000##FFFFFF
##40183A1.0014.901.4114.90
#FFFFFF14.901.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#17243B
Deuteranopia (green-blind)
#232939
Tritanopia (blue-blind)
#431B26
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #40183a;
/* rgb */ color: rgb(64, 24, 58);
/* oklch */ color: oklch(28.4% 0.079 333.6);
Tailwind
colors: {
  custom: {
    50: '#765770',
    500: '#40183a',
    950: '#000000',
  },
}
SCSS
$custom: #40183a;
$custom-light: #765770;
$custom-dark: #000000;
JSON
{
  "hex": "#40183a",
  "rgb": {
    "r": 64,
    "g": 24,
    "b": 58
  },
  "hsl": {
    "h": 309,
    "s": 45.455,
    "l": 17.255
  },
  "oklch": {
    "l": 0.28386,
    "c": 0.07945,
    "h": 333.6
  },
  "luminance": 0.02049
}

Semantic roles & 50–950 ramp

primary
#40183A
secondary
#3D7746
accent
#D56653
background
#F7F5F6
surface
#EDE9EC
border
#C8C5C7
text
#090307
muted
#7B787A

Preview Lab

Preview with #40183A

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

Preview Lab → · Contrast checker → · Palette generator →

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