#40324E#40324E

#40324E is a dark, muted violet. Relative luminance 0.039; OKLCH L 34.5% C 0.051 H 306.8°. Best body text is #FFFFFF at 11.77:1 contrast (WCAG AA passes).

Color values

HEX#40324E
RGBrgb(64, 50, 78)
HSLhsl(270, 22%, 25%)
HSVhsv(270, 36%, 31%)
CMYKcmyk(17.9%, 35.9%, 0%, 69.4%)
CIE-LABlab(23.41, 12.74, -14.83)
CIE-LCHlch(23.41, 19.55, 310.66°)
OKLaboklab(34.48% 0.0305 -0.0408)
OKLCHoklch(34.48% 0.051 306.8)
XYZxyz(4.6298, 3.9213, 7.7192)
Luminance0.0392 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40324E #404E32
analogous
#32324E #40324E #4E324E
triadic
#40324E #4E4032 #324E40
tetradic
#40324E #4E3232 #404E32 #324E4E
square
#40324E #4E3232 #404E32 #324E4E
split-complementary
#40324E #4E4E32 #324E32
monochromatic
#0F0C13 #211A29 #40324E #5F4A73 #7D6299

Accessibility & contrast

On white

11.77
#40324E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#40324E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40324E
11.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40324E#FFFFFF#000000##FFFFFF
##40324E1.0011.771.7811.77
#FFFFFF11.771.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D374F
Deuteranopia (green-blind)
#2F384D
Tritanopia (blue-blind)
#3E363C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #40324e;
/* rgb */ color: rgb(64, 50, 78);
/* oklch */ color: oklch(34.5% 0.051 306.8);
Tailwind
colors: {
  custom: {
    50: '#756a7f',
    500: '#40324e',
    950: '#000000',
  },
}
SCSS
$custom: #40324e;
$custom-light: #756a7f;
$custom-dark: #000000;
JSON
{
  "hex": "#40324e",
  "rgb": {
    "r": 64,
    "g": 50,
    "b": 78
  },
  "hsl": {
    "h": 270,
    "s": 21.875,
    "l": 25.098
  },
  "oklch": {
    "l": 0.34476,
    "c": 0.05097,
    "h": 306.8
  },
  "luminance": 0.03921
}

Semantic roles & 50–950 ramp

primary
#40324E
secondary
#6E7F5D
accent
#BE6994
background
#F7F6F7
surface
#EDEBEE
border
#C8C6C9
text
#08060A
muted
#7B7A7C

Preview Lab

Preview with #40324E

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

Preview Lab → · Contrast checker → · Palette generator →

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