#40313E#40313E

#40313E is a dark, muted purple. Relative luminance 0.036; OKLCH L 33.5% C 0.030 H 330.8°. Best body text is #FFFFFF at 12.16:1 contrast (WCAG AA passes).

Color values

HEX#40313E
RGBrgb(64, 49, 62)
HSLhsl(308, 13%, 22%)
HSVhsv(308, 23%, 25%)
CMYKcmyk(0%, 23.4%, 3.1%, 74.9%)
CIE-LABlab(22.42, 9.48, -5.58)
CIE-LCHlch(22.42, 11.00, 329.53°)
OKLaboklab(33.49% 0.0266 -0.0149)
OKLCHoklch(33.49% 0.03 330.8)
XYZxyz(4.0821, 3.6345, 5.0430)
Luminance0.0363 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40313E #314033
analogous
#3B3140 #40313E #403137
triadic
#40313E #3E4031 #313E40
tetradic
#40313E #403B31 #314033 #313740
square
#40313E #403B31 #314033 #313740
split-complementary
#40313E #374031 #31403B
monochromatic
#110D11 #1D161C #40313E #634C60 #856681

Accessibility & contrast

On white

12.16
#40313E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#40313E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40313E
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40313E#FFFFFF#000000##FFFFFF
##40313E1.0012.161.7312.16
#FFFFFF12.161.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#31343F
Deuteranopia (green-blind)
#34363D
Tritanopia (blue-blind)
#413235
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #40313e;
/* rgb */ color: rgb(64, 49, 62);
/* oklch */ color: oklch(33.5% 0.030 330.8);
Tailwind
colors: {
  custom: {
    50: '#756973',
    500: '#40313e',
    950: '#000000',
  },
}
SCSS
$custom: #40313e;
$custom-light: #756973;
$custom-dark: #000000;
JSON
{
  "hex": "#40313e",
  "rgb": {
    "r": 64,
    "g": 49,
    "b": 62
  },
  "hsl": {
    "h": 308,
    "s": 13.274,
    "l": 22.157
  },
  "oklch": {
    "l": 0.33491,
    "c": 0.03048,
    "h": 330.8
  },
  "luminance": 0.03634
}

Semantic roles & 50–950 ramp

primary
#40313E
secondary
#5D705F
accent
#B67B72
background
#F7F6F6
surface
#EDEBEC
border
#C8C6C7
text
#080608
muted
#7B7A7B

Preview Lab

Preview with #40313E

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

Preview Lab → · Contrast checker → · Palette generator →

#40313E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva