#40324C#40324C

#40324C is a dark, muted violet. Relative luminance 0.039; OKLCH L 34.4% C 0.048 H 308.6°. Best body text is #FFFFFF at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#40324C
RGBrgb(64, 50, 76)
HSLhsl(272, 21%, 25%)
HSVhsv(272, 34%, 30%)
CMYKcmyk(15.8%, 34.2%, 0%, 70.2%)
CIE-LABlab(23.31, 12.21, -13.64)
CIE-LCHlch(23.31, 18.31, 311.84°)
OKLaboklab(34.37% 0.0299 -0.0374)
OKLCHoklch(34.37% 0.048 308.6)
XYZxyz(4.5592, 3.8930, 7.3473)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40324C #3E4C32
analogous
#33324C #40324C #4C324B
triadic
#40324C #4C4032 #324C40
tetradic
#40324C #4C3332 #3E4C32 #324B4C
square
#40324C #4C3332 #3E4C32 #324B4C
split-complementary
#40324C #4B4C32 #324C33
monochromatic
#100C12 #211A27 #40324C #5F4A71 #7E6396

Accessibility & contrast

On white

11.81
#40324C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40324C
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40324C#FFFFFF#000000##FFFFFF
##40324C1.0011.811.7811.81
#FFFFFF11.811.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D374D
Deuteranopia (green-blind)
#30384B
Tritanopia (blue-blind)
#3F363B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #40324c;
/* rgb */ color: rgb(64, 50, 76);
/* oklch */ color: oklch(34.4% 0.048 308.6);
Tailwind
colors: {
  custom: {
    50: '#756a7e',
    500: '#40324c',
    950: '#000000',
  },
}
SCSS
$custom: #40324c;
$custom-light: #756a7e;
$custom-dark: #000000;
JSON
{
  "hex": "#40324c",
  "rgb": {
    "r": 64,
    "g": 50,
    "b": 76
  },
  "hsl": {
    "h": 272.308,
    "s": 20.635,
    "l": 24.706
  },
  "oklch": {
    "l": 0.34372,
    "c": 0.04791,
    "h": 308.6
  },
  "luminance": 0.03893
}

Semantic roles & 50–950 ramp

primary
#40324C
secondary
#6C7D5D
accent
#BD6B91
background
#F7F6F7
surface
#EDEBEE
border
#C8C6C9
text
#08060A
muted
#7B7A7C

Preview Lab

Preview with #40324C

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

Preview Lab → · Contrast checker → · Palette generator →

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