#403D74#403D74

#403D74 is a dark, moderate blue. Relative luminance 0.057; OKLCH L 39.1% C 0.091 H 283.8°. Best body text is #FFFFFF at 9.82:1 contrast (WCAG AA passes).

Color values

HEX#403D74
RGBrgb(64, 61, 116)
HSLhsl(243, 31%, 35%)
HSVhsv(243, 47%, 45%)
CMYKcmyk(44.8%, 47.4%, 0%, 54.5%)
CIE-LABlab(28.61, 16.64, -31.31)
CIE-LCHlch(28.61, 35.45, 297.99°)
OKLaboklab(39.11% 0.0218 -0.0886)
OKLCHoklch(39.11% 0.091 283.8)
XYZxyz(6.9346, 5.6881, 17.2521)
Luminance0.0569 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403D74 #71743D
analogous
#3D5674 #403D74 #5C3D74
triadic
#403D74 #74403D #3D7440
tetradic
#403D74 #743D56 #71743D #3D745C
square
#403D74 #743D56 #71743D #3D745C
split-complementary
#403D74 #745C3D #56743D
monochromatic
#141324 #2A284C #403D74 #56529C #7975B6

Accessibility & contrast

On white

9.82
#403D74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#403D74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403D74
9.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403D74#FFFFFF#000000##FFFFFF
##403D741.009.822.149.82
#FFFFFF9.821.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#284576
Deuteranopia (green-blind)
#264273
Tritanopia (blue-blind)
#304853
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #403d74;
/* rgb */ color: rgb(64, 61, 116);
/* oklch */ color: oklch(39.1% 0.091 283.8);
Tailwind
colors: {
  custom: {
    50: '#78729c',
    500: '#403d74',
    950: '#000000',
  },
}
SCSS
$custom: #403d74;
$custom-light: #78729c;
$custom-dark: #000000;
JSON
{
  "hex": "#403d74",
  "rgb": {
    "r": 64,
    "g": 61,
    "b": 116
  },
  "hsl": {
    "h": 243.273,
    "s": 31.073,
    "l": 34.706
  },
  "oklch": {
    "l": 0.39112,
    "c": 0.09122,
    "h": 283.8
  },
  "luminance": 0.05688
}

Semantic roles & 50–950 ramp

primary
#403D74
secondary
#9EA16C
accent
#C761C2
background
#F7F6F9
surface
#EDECF2
border
#C8C7CC
text
#09080E
muted
#7B7B7E

Preview Lab

Preview with #403D74

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

Preview Lab → · Contrast checker → · Palette generator →

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