#40183B#40183B

#40183B is a dark, moderate purple. Relative luminance 0.021; OKLCH L 28.4% C 0.080 H 332.5°. Best body text is #FFFFFF at 14.87:1 contrast (WCAG AA passes).

Color values

HEX#40183B
RGBrgb(64, 24, 59)
HSLhsl(308, 45%, 17%)
HSVhsv(308, 63%, 25%)
CMYKcmyk(0%, 62.5%, 7.8%, 74.9%)
CIE-LABlab(15.79, 24.91, -13.63)
CIE-LCHlch(15.79, 28.40, 331.32°)
OKLaboklab(28.44% 0.0714 -0.0371)
OKLCHoklch(28.44% 0.08 332.5)
XYZxyz(3.2304, 2.0592, 4.3642)
Luminance0.0206 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40183B #18401D
analogous
#311840 #40183B #401827
triadic
#40183B #3B4018 #183B40
tetradic
#40183B #403118 #18401D #182740
square
#40183B #403118 #18401D #182740
split-complementary
#40183B #274018 #184031
monochromatic
#160815 #160815 #40183B #6D2964 #99398D

Accessibility & contrast

On white

14.87
#40183B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40183B
14.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40183B#FFFFFF#000000##FFFFFF
##40183B1.0014.871.4114.87
#FFFFFF14.871.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#17243C
Deuteranopia (green-blind)
#23293A
Tritanopia (blue-blind)
#431B27
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #40183b;
/* rgb */ color: rgb(64, 24, 59);
/* oklch */ color: oklch(28.4% 0.080 332.5);
Tailwind
colors: {
  custom: {
    50: '#765771',
    500: '#40183b',
    950: '#000000',
  },
}
SCSS
$custom: #40183b;
$custom-light: #765771;
$custom-dark: #000000;
JSON
{
  "hex": "#40183b",
  "rgb": {
    "r": 64,
    "g": 24,
    "b": 59
  },
  "hsl": {
    "h": 307.5,
    "s": 45.455,
    "l": 17.255
  },
  "oklch": {
    "l": 0.28442,
    "c": 0.08044,
    "h": 332.5
  },
  "luminance": 0.02059
}

Semantic roles & 50–950 ramp

primary
#40183B
secondary
#3D7744
accent
#D56353
background
#F7F5F6
surface
#EDE9EC
border
#C8C5C7
text
#090307
muted
#7B787A

Preview Lab

Preview with #40183B

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

Preview Lab → · Contrast checker → · Palette generator →

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