#403D5F#403D5F

#403D5F is a dark, muted blue. Relative luminance 0.053; OKLCH L 37.8% C 0.058 H 287.4°. Best body text is #FFFFFF at 10.24:1 contrast (WCAG AA passes).

Color values

HEX#403D5F
RGBrgb(64, 61, 95)
HSLhsl(245, 22%, 31%)
HSVhsv(245, 36%, 37%)
CMYKcmyk(32.6%, 35.8%, 0%, 62.7%)
CIE-LABlab(27.45, 10.13, -19.72)
CIE-LCHlch(27.45, 22.16, 297.19°)
OKLaboklab(37.84% 0.0172 -0.0549)
OKLCHoklch(37.84% 0.058 287.4)
XYZxyz(5.8481, 5.2536, 11.5302)
Luminance0.0525 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403D5F #5C5F3D
analogous
#3D4B5F #403D5F #513D5F
triadic
#403D5F #5F403D #3D5F40
tetradic
#403D5F #5F3D4B #5C5F3D #3D5F51
square
#403D5F #5F3D4B #5C5F3D #3D5F51
split-complementary
#403D5F #5F513D #4B5F3D
monochromatic
#0E0D14 #27253A #403D5F #595584 #7672A4

Accessibility & contrast

On white

10.24
#403D5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#403D5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403D5F
10.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403D5F#FFFFFF#000000##FFFFFF
##403D5F1.0010.242.0510.24
#FFFFFF10.241.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#334260
Deuteranopia (green-blind)
#33405E
Tritanopia (blue-blind)
#394349
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #403d5f;
/* rgb */ color: rgb(64, 61, 95);
/* oklch */ color: oklch(37.8% 0.058 287.4);
Tailwind
colors: {
  custom: {
    50: '#76728c',
    500: '#403d5f',
    950: '#000000',
  },
}
SCSS
$custom: #403d5f;
$custom-light: #76728c;
$custom-dark: #000000;
JSON
{
  "hex": "#403d5f",
  "rgb": {
    "r": 64,
    "g": 61,
    "b": 95
  },
  "hsl": {
    "h": 245.294,
    "s": 21.795,
    "l": 30.588
  },
  "oklch": {
    "l": 0.37842,
    "c": 0.0575,
    "h": 287.4
  },
  "luminance": 0.05254
}

Semantic roles & 50–950 ramp

primary
#403D5F
secondary
#8B8F69
accent
#BE69B7
background
#F7F6F8
surface
#EDECF0
border
#C8C7CB
text
#08080C
muted
#7B7B7D

Preview Lab

Preview with #403D5F

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

Preview Lab → · Contrast checker → · Palette generator →

#403D5F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva