#403C81#403C81

#403C81 is a dark, moderate blue. Relative luminance 0.059; OKLCH L 39.8% C 0.113 H 282.6°. Best body text is #FFFFFF at 9.63:1 contrast (WCAG AA passes).

Color values

HEX#403C81
RGBrgb(64, 60, 129)
HSLhsl(243, 37%, 37%)
HSVhsv(243, 53%, 51%)
CMYKcmyk(50.4%, 53.5%, 0%, 49.4%)
CIE-LABlab(29.17, 21.55, -38.57)
CIE-LCHlch(29.17, 44.19, 299.19°)
OKLaboklab(39.81% 0.0246 -0.1099)
OKLCHoklch(39.81% 0.113 282.6)
XYZxyz(7.6915, 5.9063, 21.4994)
Luminance0.0591 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403C81 #7D813C
analogous
#3C5B81 #403C81 #633C81
triadic
#403C81 #81403C #3C8140
tetradic
#403C81 #813C5B #7D813C #3C8163
square
#403C81 #813C5B #7D813C #3C8163
split-complementary
#403C81 #81633C #5B813C
monochromatic
#17152D #2B2957 #403C81 #554FAB #7C77C0

Accessibility & contrast

On white

9.63
#403C81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#403C81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403C81
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403C81#FFFFFF#000000##FFFFFF
##403C811.009.632.189.63
#FFFFFF9.631.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A4783
Deuteranopia (green-blind)
#15427F
Tritanopia (blue-blind)
#284B58
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #403c81;
/* rgb */ color: rgb(64, 60, 129);
/* oklch */ color: oklch(39.8% 0.113 282.6);
Tailwind
colors: {
  custom: {
    50: '#7a71a6',
    500: '#403c81',
    950: '#000000',
  },
}
SCSS
$custom: #403c81;
$custom-light: #7a71a6;
$custom-dark: #000000;
JSON
{
  "hex": "#403c81",
  "rgb": {
    "r": 64,
    "g": 60,
    "b": 129
  },
  "hsl": {
    "h": 243.478,
    "s": 36.508,
    "l": 37.059
  },
  "oklch": {
    "l": 0.39806,
    "c": 0.11263,
    "h": 282.6
  },
  "luminance": 0.05907
}

Semantic roles & 50–950 ramp

primary
#403C81
secondary
#A6AA6F
accent
#CD5BC6
background
#F7F6FA
surface
#EEECF4
border
#C9C7CE
text
#09070F
muted
#7B7A7F

Preview Lab

Preview with #403C81

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

Preview Lab → · Contrast checker → · Palette generator →

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