#40344A#40344A

#40344A is a dark, muted violet. Relative luminance 0.040; OKLCH L 34.7% C 0.041 H 309.1°. Best body text is #FFFFFF at 11.62:1 contrast (WCAG AA passes).

Color values

HEX#40344A
RGBrgb(64, 52, 74)
HSLhsl(273, 17%, 25%)
HSVhsv(273, 30%, 29%)
CMYKcmyk(13.5%, 29.7%, 0%, 71%)
CIE-LABlab(23.80, 10.35, -11.55)
CIE-LCHlch(23.80, 15.51, 311.86°)
OKLaboklab(34.72% 0.0257 -0.0315)
OKLCHoklch(34.72% 0.041 309.1)
XYZxyz(4.5782, 4.0404, 7.0159)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40344A #3E4A34
analogous
#35344A #40344A #4A3449
triadic
#40344A #4A4034 #344A40
tetradic
#40344A #4A3534 #3E4A34 #34494A
square
#40344A #4A3534 #3E4A34 #34494A
split-complementary
#40344A #494A34 #344A35
monochromatic
#100D12 #211B26 #40344A #5F4D6E #7E6792

Accessibility & contrast

On white

11.62
#40344A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#40344A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40344A
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40344A#FFFFFF#000000##FFFFFF
##40344A1.0011.621.8111.62
#FFFFFF11.621.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#30384B
Deuteranopia (green-blind)
#333949
Tritanopia (blue-blind)
#3F373C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #40344a;
/* rgb */ color: rgb(64, 52, 74);
/* oklch */ color: oklch(34.7% 0.041 309.1);
Tailwind
colors: {
  custom: {
    50: '#756b7c',
    500: '#40344a',
    950: '#000000',
  },
}
SCSS
$custom: #40344a;
$custom-light: #756b7c;
$custom-dark: #000000;
JSON
{
  "hex": "#40344a",
  "rgb": {
    "r": 64,
    "g": 52,
    "b": 74
  },
  "hsl": {
    "h": 272.727,
    "s": 17.46,
    "l": 24.706
  },
  "oklch": {
    "l": 0.34717,
    "c": 0.04068,
    "h": 309.1
  },
  "luminance": 0.0404
}

Semantic roles & 50–950 ramp

primary
#40344A
secondary
#6C7A60
accent
#BA6E90
background
#F7F6F7
surface
#EDEBEE
border
#C8C6C9
text
#080609
muted
#7B7A7B

Preview Lab

Preview with #40344A

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

Preview Lab → · Contrast checker → · Palette generator →

#40344A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva