#403A71#403A71

#403A71 is a dark, moderate blue. Relative luminance 0.053; OKLCH L 38.3% C 0.091 H 286.2°. Best body text is #FFFFFF at 10.19:1 contrast (WCAG AA passes).

Color values

HEX#403A71
RGBrgb(64, 58, 113)
HSLhsl(247, 32%, 34%)
HSVhsv(247, 49%, 44%)
CMYKcmyk(43.4%, 48.7%, 0%, 55.7%)
CIE-LABlab(27.60, 17.68, -31.02)
CIE-LCHlch(27.60, 35.71, 299.68°)
OKLaboklab(38.28% 0.0255 -0.0878)
OKLCHoklch(38.28% 0.091 286.2)
XYZxyz(6.6072, 5.3081, 16.2960)
Luminance0.0531 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403A71 #6B713A
analogous
#3A4F71 #403A71 #5B3A71
triadic
#403A71 #71403A #3A7140
tetradic
#403A71 #713A4F #6B713A #3A715B
square
#403A71 #713A4F #6B713A #3A715B
split-complementary
#403A71 #715B3A #4F713A
monochromatic
#121020 #292549 #403A71 #574F99 #7770B6

Accessibility & contrast

On white

10.19
#403A71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#403A71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403A71
10.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403A71#FFFFFF#000000##FFFFFF
##403A711.0010.192.0610.19
#FFFFFF10.191.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#254373
Deuteranopia (green-blind)
#244070
Tritanopia (blue-blind)
#324550
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #403a71;
/* rgb */ color: rgb(64, 58, 113);
/* oklch */ color: oklch(38.3% 0.091 286.2);
Tailwind
colors: {
  custom: {
    50: '#78709a',
    500: '#403a71',
    950: '#000000',
  },
}
SCSS
$custom: #403a71;
$custom-light: #78709a;
$custom-dark: #000000;
JSON
{
  "hex": "#403a71",
  "rgb": {
    "r": 64,
    "g": 58,
    "b": 113
  },
  "hsl": {
    "h": 246.545,
    "s": 32.164,
    "l": 33.529
  },
  "oklch": {
    "l": 0.38284,
    "c": 0.0914,
    "h": 286.2
  },
  "luminance": 0.05308
}

Semantic roles & 50–950 ramp

primary
#403A71
secondary
#999F68
accent
#C85FBD
background
#F7F6F9
surface
#EDECF2
border
#C8C7CC
text
#09070E
muted
#7B7A7E

Preview Lab

Preview with #403A71

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

Preview Lab → · Contrast checker → · Palette generator →

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