#40344C#40344C

#40344C is a dark, muted violet. Relative luminance 0.041; OKLCH L 34.8% C 0.044 H 307.0°. Best body text is #FFFFFF at 11.58:1 contrast (WCAG AA passes).

Color values

HEX#40344C
RGBrgb(64, 52, 76)
HSLhsl(270, 19%, 25%)
HSVhsv(270, 32%, 30%)
CMYKcmyk(15.8%, 31.6%, 0%, 70.2%)
CIE-LABlab(23.89, 10.87, -12.75)
CIE-LCHlch(23.89, 16.75, 310.44°)
OKLaboklab(34.82% 0.0264 -0.0349)
OKLCHoklch(34.82% 0.044 307)
XYZxyz(4.6466, 4.0678, 7.3765)
Luminance0.0407 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40344C #404C34
analogous
#34344C #40344C #4C344C
triadic
#40344C #4C4034 #344C40
tetradic
#40344C #4C3434 #404C34 #344C4C
square
#40344C #4C3434 #404C34 #344C4C
split-complementary
#40344C #4C4C34 #344C34
monochromatic
#0F0C12 #211B28 #40344C #5F4D70 #7D6695

Accessibility & contrast

On white

11.58
#40344C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40344C
11.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40344C#FFFFFF#000000##FFFFFF
##40344C1.0011.581.8111.58
#FFFFFF11.581.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#30384D
Deuteranopia (green-blind)
#32394B
Tritanopia (blue-blind)
#3E373D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #40344c;
/* rgb */ color: rgb(64, 52, 76);
/* oklch */ color: oklch(34.8% 0.044 307.0);
Tailwind
colors: {
  custom: {
    50: '#756b7e',
    500: '#40344c',
    950: '#000000',
  },
}
SCSS
$custom: #40344c;
$custom-light: #756b7e;
$custom-dark: #000000;
JSON
{
  "hex": "#40344c",
  "rgb": {
    "r": 64,
    "g": 52,
    "b": 76
  },
  "hsl": {
    "h": 270,
    "s": 18.75,
    "l": 25.098
  },
  "oklch": {
    "l": 0.34816,
    "c": 0.04375,
    "h": 307
  },
  "luminance": 0.04068
}

Semantic roles & 50–950 ramp

primary
#40344C
secondary
#6E7C5F
accent
#BB6C94
background
#F7F6F7
surface
#EDEBEE
border
#C8C6C9
text
#080609
muted
#7B7A7B

Preview Lab

Preview with #40344C

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

Preview Lab → · Contrast checker → · Palette generator →

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