#403C71#403C71

#403C71 is a dark, moderate blue. Relative luminance 0.055; OKLCH L 38.7% C 0.088 H 284.9°. Best body text is #FFFFFF at 9.99:1 contrast (WCAG AA passes).

Color values

HEX#403C71
RGBrgb(64, 60, 113)
HSLhsl(245, 31%, 34%)
HSVhsv(245, 47%, 44%)
CMYKcmyk(43.4%, 46.9%, 0%, 55.7%)
CIE-LABlab(28.15, 16.34, -30.14)
CIE-LCHlch(28.15, 34.28, 298.47°)
OKLaboklab(38.7% 0.0227 -0.0852)
OKLCHoklch(38.7% 0.088 284.9)
XYZxyz(6.7100, 5.5137, 16.3303)
Luminance0.0551 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403C71 #6D713C
analogous
#3C5371 #403C71 #5B3C71
triadic
#403C71 #71403C #3C7140
tetradic
#403C71 #713C53 #6D713C #3C715B
square
#403C71 #713C53 #6D713C #3C715B
split-complementary
#403C71 #715B3C #53713C
monochromatic
#131221 #292749 #403C71 #575199 #7873B5

Accessibility & contrast

On white

9.99
#403C71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#403C71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403C71
9.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403C71#FFFFFF#000000##FFFFFF
##403C711.009.992.109.99
#FFFFFF9.991.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#284473
Deuteranopia (green-blind)
#274170
Tritanopia (blue-blind)
#324751
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #403c71;
/* rgb */ color: rgb(64, 60, 113);
/* oklch */ color: oklch(38.7% 0.088 284.9);
Tailwind
colors: {
  custom: {
    50: '#78719a',
    500: '#403c71',
    950: '#000000',
  },
}
SCSS
$custom: #403c71;
$custom-light: #78719a;
$custom-dark: #000000;
JSON
{
  "hex": "#403c71",
  "rgb": {
    "r": 64,
    "g": 60,
    "b": 113
  },
  "hsl": {
    "h": 244.528,
    "s": 30.636,
    "l": 33.922
  },
  "oklch": {
    "l": 0.38704,
    "c": 0.08813,
    "h": 284.9
  },
  "luminance": 0.05514
}

Semantic roles & 50–950 ramp

primary
#403C71
secondary
#9B9F6A
accent
#C761BF
background
#F7F6F9
surface
#EDECF2
border
#C8C7CC
text
#09070E
muted
#7B7A7E

Preview Lab

Preview with #403C71

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

Preview Lab → · Contrast checker → · Palette generator →

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