#40323F#40323F

#40323F is a dark, muted purple. Relative luminance 0.037; OKLCH L 33.8% C 0.029 H 328.5°. Best body text is #FFFFFF at 12.03:1 contrast (WCAG AA passes).

Color values

HEX#40323F
RGBrgb(64, 50, 63)
HSLhsl(304, 12%, 22%)
HSVhsv(304, 22%, 25%)
CMYKcmyk(0%, 21.9%, 1.6%, 74.9%)
CIE-LABlab(22.76, 9.03, -5.75)
CIE-LCHlch(22.76, 10.71, 327.51°)
OKLaboklab(33.76% 0.0251 -0.0154)
OKLCHoklch(33.76% 0.029 328.5)
XYZxyz(4.1521, 3.7302, 5.2029)
Luminance0.0373 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40323F #324033
analogous
#3A3240 #40323F #403238
triadic
#40323F #3F4032 #323F40
tetradic
#40323F #403A32 #324033 #323840
square
#40323F #403A32 #324033 #323840
split-complementary
#40323F #384032 #32403A
monochromatic
#110D11 #1E171D #40323F #624D61 #856883

Accessibility & contrast

On white

12.03
#40323F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#40323F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40323F
12.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40323F#FFFFFF#000000##FFFFFF
##40323F1.0012.031.7512.03
#FFFFFF12.031.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#313540
Deuteranopia (green-blind)
#34373E
Tritanopia (blue-blind)
#413336
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #40323f;
/* rgb */ color: rgb(64, 50, 63);
/* oklch */ color: oklch(33.8% 0.029 328.5);
Tailwind
colors: {
  custom: {
    50: '#756a74',
    500: '#40323f',
    950: '#000000',
  },
}
SCSS
$custom: #40323f;
$custom-light: #756a74;
$custom-dark: #000000;
JSON
{
  "hex": "#40323f",
  "rgb": {
    "r": 64,
    "g": 50,
    "b": 63
  },
  "hsl": {
    "h": 304.286,
    "s": 12.281,
    "l": 22.353
  },
  "oklch": {
    "l": 0.33761,
    "c": 0.02946,
    "h": 328.5
  },
  "luminance": 0.0373
}

Semantic roles & 50–950 ramp

primary
#40323F
secondary
#5E705F
accent
#B57773
background
#F7F6F7
surface
#EDEBED
border
#C8C6C8
text
#080608
muted
#7B7A7B

Preview Lab

Preview with #40323F

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

Preview Lab → · Contrast checker → · Palette generator →

#40323F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva