#403654#403654

#403654 is a dark, muted violet. Relative luminance 0.044; OKLCH L 35.7% C 0.052 H 299.0°. Best body text is #FFFFFF at 11.21:1 contrast (WCAG AA passes).

Color values

HEX#403654
RGBrgb(64, 54, 84)
HSLhsl(260, 22%, 27%)
HSVhsv(260, 36%, 33%)
CMYKcmyk(23.8%, 35.7%, 0%, 67.1%)
CIE-LABlab(24.85, 11.67, -16.57)
CIE-LCHlch(24.85, 20.26, 305.16°)
OKLaboklab(35.68% 0.0254 -0.0458)
OKLCHoklch(35.68% 0.052 299)
XYZxyz(5.0334, 4.3684, 8.9638)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403654 #4A5436
analogous
#363B54 #403654 #4F3654
triadic
#403654 #544036 #365440
tetradic
#403654 #54363B #4A5436 #36544F
square
#403654 #54363B #4A5436 #36544F
split-complementary
#403654 #544F36 #3B5436
monochromatic
#0E0C13 #241E2F #403654 #5C4E79 #79679D

Accessibility & contrast

On white

11.21
#403654 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#403654 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403654
11.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403654#FFFFFF#000000##FFFFFF
##4036541.0011.211.8711.21
#FFFFFF11.211.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F3B55
Deuteranopia (green-blind)
#313B53
Tritanopia (blue-blind)
#3C3B41
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #403654;
/* rgb */ color: rgb(64, 54, 84);
/* oklch */ color: oklch(35.7% 0.052 299.0);
Tailwind
colors: {
  custom: {
    50: '#756d84',
    500: '#403654',
    950: '#000000',
  },
}
SCSS
$custom: #403654;
$custom-light: #756d84;
$custom-dark: #000000;
JSON
{
  "hex": "#403654",
  "rgb": {
    "r": 64,
    "g": 54,
    "b": 84
  },
  "hsl": {
    "h": 260,
    "s": 21.739,
    "l": 27.059
  },
  "oklch": {
    "l": 0.35675,
    "c": 0.0524,
    "h": 299
  },
  "luminance": 0.04368
}

Semantic roles & 50–950 ramp

primary
#403654
secondary
#798461
accent
#BE6AA2
background
#F7F6F8
surface
#EDEBEF
border
#C8C6CA
text
#08070B
muted
#7B7A7C

Preview Lab

Preview with #403654

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

Preview Lab → · Contrast checker → · Palette generator →

#403654 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva