#403D71#403D71

#403D71 is a dark, moderate blue. Relative luminance 0.056; OKLCH L 38.9% C 0.087 H 284.2°. Best body text is #FFFFFF at 9.89:1 contrast (WCAG AA passes).

Color values

HEX#403D71
RGBrgb(64, 61, 113)
HSLhsl(243, 30%, 34%)
HSVhsv(243, 46%, 44%)
CMYKcmyk(43.4%, 46%, 0%, 55.7%)
CIE-LABlab(28.43, 15.67, -29.69)
CIE-LCHlch(28.43, 33.58, 297.83°)
OKLaboklab(38.92% 0.0213 -0.0839)
OKLCHoklch(38.92% 0.087 284.2)
XYZxyz(6.7629, 5.6195, 16.3479)
Luminance0.0562 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403D71 #6E713D
analogous
#3D5471 #403D71 #5A3D71
triadic
#403D71 #71403D #3D7140
tetradic
#403D71 #713D54 #6E713D #3D715A
square
#403D71 #713D54 #6E713D #3D715A
split-complementary
#403D71 #715A3D #54713D
monochromatic
#131222 #292849 #403D71 #575299 #7874B4

Accessibility & contrast

On white

9.89
#403D71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#403D71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403D71
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403D71#FFFFFF#000000##FFFFFF
##403D711.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A4573
Deuteranopia (green-blind)
#284170
Tritanopia (blue-blind)
#314751
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #403d71;
/* rgb */ color: rgb(64, 61, 113);
/* oklch */ color: oklch(38.9% 0.087 284.2);
Tailwind
colors: {
  custom: {
    50: '#78729a',
    500: '#403d71',
    950: '#000000',
  },
}
SCSS
$custom: #403d71;
$custom-light: #78729a;
$custom-dark: #000000;
JSON
{
  "hex": "#403d71",
  "rgb": {
    "r": 64,
    "g": 61,
    "b": 113
  },
  "hsl": {
    "h": 243.462,
    "s": 29.885,
    "l": 34.118
  },
  "oklch": {
    "l": 0.38917,
    "c": 0.08652,
    "h": 284.2
  },
  "luminance": 0.0562
}

Semantic roles & 50–950 ramp

primary
#403D71
secondary
#9B9E6B
accent
#C662C0
background
#F7F6F9
surface
#EDECF2
border
#C8C7CC
text
#09080E
muted
#7B7B7E

Preview Lab

Preview with #403D71

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

Preview Lab → · Contrast checker → · Palette generator →

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