#403045#403045

#403045 is a dark, muted purple. Relative luminance 0.036; OKLCH L 33.6% C 0.042 H 318.0°. Best body text is #FFFFFF at 12.16:1 contrast (WCAG AA passes).

Color values

HEX#403045
RGBrgb(64, 48, 69)
HSLhsl(286, 18%, 23%)
HSVhsv(286, 30%, 27%)
CMYKcmyk(7.2%, 30.4%, 0%, 72.9%)
CIE-LABlab(22.42, 11.79, -10.31)
CIE-LCHlch(22.42, 15.67, 318.83°)
OKLaboklab(33.58% 0.0311 -0.028)
OKLCHoklch(33.58% 0.042 318)
XYZxyz(4.2453, 3.6336, 6.1068)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403045 #354530
analogous
#353045 #403045 #45303F
triadic
#403045 #454030 #304540
tetradic
#403045 #453530 #354530 #303F45
square
#403045 #453530 #354530 #303F45
split-complementary
#403045 #3F4530 #304535
monochromatic
#110D12 #1F1721 #403045 #614969 #83628D

Accessibility & contrast

On white

12.16
#403045 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#403045 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403045
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403045#FFFFFF#000000##FFFFFF
##4030451.0012.161.7312.16
#FFFFFF12.161.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D3546
Deuteranopia (green-blind)
#313644
Tritanopia (blue-blind)
#403237
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #403045;
/* rgb */ color: rgb(64, 48, 69);
/* oklch */ color: oklch(33.6% 0.042 318.0);
Tailwind
colors: {
  custom: {
    50: '#756878',
    500: '#403045',
    950: '#000000',
  },
}
SCSS
$custom: #403045;
$custom-light: #756878;
$custom-dark: #000000;
JSON
{
  "hex": "#403045",
  "rgb": {
    "r": 64,
    "g": 48,
    "b": 69
  },
  "hsl": {
    "h": 285.714,
    "s": 17.949,
    "l": 22.941
  },
  "oklch": {
    "l": 0.33584,
    "c": 0.04188,
    "h": 318
  },
  "luminance": 0.03634
}

Semantic roles & 50–950 ramp

primary
#403045
secondary
#62765B
accent
#BB6D80
background
#F7F6F7
surface
#EDEBED
border
#C8C6C8
text
#080609
muted
#7B7A7B

Preview Lab

Preview with #403045

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

Preview Lab → · Contrast checker → · Palette generator →

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