#403147#403147

#403147 is a dark, muted purple. Relative luminance 0.037; OKLCH L 33.9% C 0.043 H 314.8°. Best body text is #FFFFFF at 12.01:1 contrast (WCAG AA passes).

Color values

HEX#403147
RGBrgb(64, 49, 71)
HSLhsl(281, 18%, 24%)
HSVhsv(281, 31%, 28%)
CMYKcmyk(9.9%, 31%, 0%, 72.2%)
CIE-LABlab(22.80, 11.61, -11.08)
CIE-LCHlch(22.80, 16.05, 316.34°)
OKLaboklab(33.9% 0.03 -0.0302)
OKLCHoklch(33.9% 0.043 314.8)
XYZxyz(4.3498, 3.7416, 6.4531)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403147 #384731
analogous
#353147 #403147 #473143
triadic
#403147 #474031 #314740
tetradic
#403147 #473531 #384731 #314347
square
#403147 #473531 #384731 #314347
split-complementary
#403147 #434731 #314735
monochromatic
#100C12 #1F1823 #403147 #614A6B #81638F

Accessibility & contrast

On white

12.01
#403147 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#403147 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403147
12.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403147#FFFFFF#000000##FFFFFF
##4031471.0012.011.7512.01
#FFFFFF12.011.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E3648
Deuteranopia (green-blind)
#313746
Tritanopia (blue-blind)
#403439
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #403147;
/* rgb */ color: rgb(64, 49, 71);
/* oklch */ color: oklch(33.9% 0.043 314.8);
Tailwind
colors: {
  custom: {
    50: '#75697a',
    500: '#403147',
    950: '#000000',
  },
}
SCSS
$custom: #403147;
$custom-light: #75697a;
$custom-dark: #000000;
JSON
{
  "hex": "#403147",
  "rgb": {
    "r": 64,
    "g": 49,
    "b": 71
  },
  "hsl": {
    "h": 280.909,
    "s": 18.333,
    "l": 23.529
  },
  "oklch": {
    "l": 0.33902,
    "c": 0.04258,
    "h": 314.8
  },
  "luminance": 0.03742
}

Semantic roles & 50–950 ramp

primary
#403147
secondary
#65775C
accent
#BB6D86
background
#F7F6F7
surface
#EDEBED
border
#C8C6C8
text
#080609
muted
#7B7A7B

Preview Lab

Preview with #403147

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

Preview Lab → · Contrast checker → · Palette generator →

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