#40364C#40364C

#40364C is a dark, muted violet. Relative luminance 0.043; OKLCH L 35.3% C 0.040 H 305.2°. Best body text is #FFFFFF at 11.35:1 contrast (WCAG AA passes).

Color values

HEX#40364C
RGBrgb(64, 54, 76)
HSLhsl(267, 17%, 25%)
HSVhsv(267, 29%, 30%)
CMYKcmyk(15.8%, 28.9%, 0%, 70.2%)
CIE-LABlab(24.48, 9.52, -11.85)
CIE-LCHlch(24.48, 15.20, 308.79°)
OKLaboklab(35.27% 0.0228 -0.0324)
OKLCHoklch(35.27% 0.04 305.2)
XYZxyz(4.7378, 4.2501, 7.4068)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40364C #424C36
analogous
#36374C #40364C #4B364C
triadic
#40364C #4C4036 #364C40
tetradic
#40364C #4C3637 #424C36 #364C4B
square
#40364C #4C3637 #424C36 #364C4B
split-complementary
#40364C #4C4B36 #374C36
monochromatic
#0F0D12 #221D28 #40364C #5E4F70 #7C6994

Accessibility & contrast

On white

11.35
#40364C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#40364C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40364C
11.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40364C#FFFFFF#000000##FFFFFF
##40364C1.0011.351.8511.35
#FFFFFF11.351.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#323A4D
Deuteranopia (green-blind)
#343A4B
Tritanopia (blue-blind)
#3E393E
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #40364c;
/* rgb */ color: rgb(64, 54, 76);
/* oklch */ color: oklch(35.3% 0.040 305.2);
Tailwind
colors: {
  custom: {
    50: '#756d7e',
    500: '#40364c',
    950: '#000000',
  },
}
SCSS
$custom: #40364c;
$custom-light: #756d7e;
$custom-dark: #000000;
JSON
{
  "hex": "#40364c",
  "rgb": {
    "r": 64,
    "g": 54,
    "b": 76
  },
  "hsl": {
    "h": 267.273,
    "s": 16.923,
    "l": 25.49
  },
  "oklch": {
    "l": 0.35267,
    "c": 0.03963,
    "h": 305.2
  },
  "luminance": 0.0425
}

Semantic roles & 50–950 ramp

primary
#40364C
secondary
#707C62
accent
#BA6E97
background
#F7F6F7
surface
#EDEBEE
border
#C8C6C9
text
#080709
muted
#7B7A7B

Preview Lab

Preview with #40364C

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

Preview Lab → · Contrast checker → · Palette generator →

#40364C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva