#403A5F#403A5F

#403A5F is a dark, moderate blue. Relative luminance 0.049; OKLCH L 37.2% C 0.063 H 290.4°. Best body text is #FFFFFF at 10.56:1 contrast (WCAG AA passes).

Color values

HEX#403A5F
RGBrgb(64, 58, 95)
HSLhsl(250, 24%, 30%)
HSVhsv(250, 39%, 37%)
CMYKcmyk(32.6%, 38.9%, 0%, 62.7%)
CIE-LABlab(26.57, 12.14, -21.08)
CIE-LCHlch(26.57, 24.33, 299.92°)
OKLaboklab(37.17% 0.0219 -0.0588)
OKLCHoklch(37.17% 0.063 290.4)
XYZxyz(5.6924, 4.9422, 11.4783)
Luminance0.0494 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403A5F #595F3A
analogous
#3A465F #403A5F #533A5F
triadic
#403A5F #5F403A #3A5F40
tetradic
#403A5F #5F3A46 #595F3A #3A5F53
square
#403A5F #5F3A46 #595F3A #3A5F53
split-complementary
#403A5F #5F533A #465F3A
monochromatic
#0D0C13 #262339 #403A5F #5A5185 #776DA6

Accessibility & contrast

On white

10.56
#403A5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#403A5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403A5F
10.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403A5F#FFFFFF#000000##FFFFFF
##403A5F1.0010.561.9910.56
#FFFFFF10.561.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F4060
Deuteranopia (green-blind)
#303E5E
Tritanopia (blue-blind)
#394148
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #403a5f;
/* rgb */ color: rgb(64, 58, 95);
/* oklch */ color: oklch(37.2% 0.063 290.4);
Tailwind
colors: {
  custom: {
    50: '#76708c',
    500: '#403a5f',
    950: '#000000',
  },
}
SCSS
$custom: #403a5f;
$custom-light: #76708c;
$custom-dark: #000000;
JSON
{
  "hex": "#403a5f",
  "rgb": {
    "r": 64,
    "g": 58,
    "b": 95
  },
  "hsl": {
    "h": 249.73,
    "s": 24.183,
    "l": 30
  },
  "oklch": {
    "l": 0.3717,
    "c": 0.06278,
    "h": 290.4
  },
  "luminance": 0.04942
}

Semantic roles & 50–950 ramp

primary
#403A5F
secondary
#888F66
accent
#C167B2
background
#F7F6F8
surface
#EDECF0
border
#C8C7CB
text
#08070C
muted
#7B7A7D

Preview Lab

Preview with #403A5F

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

Preview Lab → · Contrast checker → · Palette generator →

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