#40374E#40374E

#40374E is a dark, muted violet. Relative luminance 0.044; OKLCH L 35.6% C 0.041 H 302.3°. Best body text is #FFFFFF at 11.20:1 contrast (WCAG AA passes).

Color values

HEX#40374E
RGBrgb(64, 55, 78)
HSLhsl(263, 17%, 26%)
HSVhsv(263, 29%, 31%)
CMYKcmyk(17.9%, 29.5%, 0%, 69.4%)
CIE-LABlab(24.87, 9.38, -12.58)
CIE-LCHlch(24.87, 15.69, 306.69°)
OKLaboklab(35.59% 0.0218 -0.0345)
OKLCHoklch(35.59% 0.041 302.3)
XYZxyz(4.8554, 4.3724, 7.7944)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40374E #454E37
analogous
#37394E #40374E #4B374E
triadic
#40374E #4E4037 #374E40
tetradic
#40374E #4E3739 #454E37 #374E4B
square
#40374E #4E3739 #454E37 #374E4B
split-complementary
#40374E #4E4B37 #394E37
monochromatic
#0F0D12 #231E2A #40374E #5D5072 #7B6A96

Accessibility & contrast

On white

11.20
#40374E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#40374E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40374E
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40374E#FFFFFF#000000##FFFFFF
##40374E1.0011.201.8711.20
#FFFFFF11.201.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#323B4F
Deuteranopia (green-blind)
#343B4D
Tritanopia (blue-blind)
#3E3A3F
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #40374e;
/* rgb */ color: rgb(64, 55, 78);
/* oklch */ color: oklch(35.6% 0.041 302.3);
Tailwind
colors: {
  custom: {
    50: '#756d7f',
    500: '#40374e',
    950: '#000000',
  },
}
SCSS
$custom: #40374e;
$custom-light: #756d7f;
$custom-dark: #000000;
JSON
{
  "hex": "#40374e",
  "rgb": {
    "r": 64,
    "g": 55,
    "b": 78
  },
  "hsl": {
    "h": 263.478,
    "s": 17.293,
    "l": 26.078
  },
  "oklch": {
    "l": 0.35592,
    "c": 0.04078,
    "h": 302.3
  },
  "luminance": 0.04372
}

Semantic roles & 50–950 ramp

primary
#40374E
secondary
#737E63
accent
#BA6E9C
background
#F7F6F7
surface
#EDEBEE
border
#C8C6C9
text
#08070A
muted
#7B7A7C

Preview Lab

Preview with #40374E

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

Preview Lab → · Contrast checker → · Palette generator →

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