#40344D#40344D

#40344D is a dark, muted violet. Relative luminance 0.041; OKLCH L 34.9% C 0.045 H 306.1°. Best body text is #FFFFFF at 11.56:1 contrast (WCAG AA passes).

Color values

HEX#40344D
RGBrgb(64, 52, 77)
HSLhsl(269, 19%, 25%)
HSVhsv(269, 32%, 30%)
CMYKcmyk(16.9%, 32.5%, 0%, 69.8%)
CIE-LABlab(23.94, 11.13, -13.34)
CIE-LCHlch(23.94, 17.37, 309.82°)
OKLaboklab(34.87% 0.0267 -0.0366)
OKLCHoklch(34.87% 0.045 306.1)
XYZxyz(4.6816, 4.0818, 7.5610)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40344D #414D34
analogous
#34344D #40344D #4C344D
triadic
#40344D #4D4034 #344D40
tetradic
#40344D #4D3434 #414D34 #344D4C
square
#40344D #4D3434 #414D34 #344D4C
split-complementary
#40344D #4D4C34 #344D34
monochromatic
#0F0C12 #221B28 #40344D #5E4D72 #7D6596

Accessibility & contrast

On white

11.56
#40344D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#40344D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40344D
11.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40344D#FFFFFF#000000##FFFFFF
##40344D1.0011.561.8211.56
#FFFFFF11.561.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F394E
Deuteranopia (green-blind)
#32394C
Tritanopia (blue-blind)
#3E383D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #40344d;
/* rgb */ color: rgb(64, 52, 77);
/* oklch */ color: oklch(34.9% 0.045 306.1);
Tailwind
colors: {
  custom: {
    50: '#756b7f',
    500: '#40344d',
    950: '#000000',
  },
}
SCSS
$custom: #40344d;
$custom-light: #756b7f;
$custom-dark: #000000;
JSON
{
  "hex": "#40344d",
  "rgb": {
    "r": 64,
    "g": 52,
    "b": 77
  },
  "hsl": {
    "h": 268.8,
    "s": 19.38,
    "l": 25.294
  },
  "oklch": {
    "l": 0.34866,
    "c": 0.04531,
    "h": 306.1
  },
  "luminance": 0.04082
}

Semantic roles & 50–950 ramp

primary
#40344D
secondary
#6F7D5F
accent
#BC6C96
background
#F7F6F7
surface
#EDEBEE
border
#C8C6C9
text
#08060A
muted
#7B7A7C

Preview Lab

Preview with #40344D

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

Preview Lab → · Contrast checker → · Palette generator →

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