#403D82#403D82

#403D82 is a dark, moderate blue. Relative luminance 0.060; OKLCH L 40.1% C 0.113 H 282.0°. Best body text is #FFFFFF at 9.51:1 contrast (WCAG AA passes).

Color values

HEX#403D82
RGBrgb(64, 61, 130)
HSLhsl(243, 36%, 37%)
HSVhsv(243, 53%, 51%)
CMYKcmyk(50.8%, 53.1%, 0%, 49%)
CIE-LABlab(29.51, 21.22, -38.66)
CIE-LCHlch(29.51, 44.10, 298.76°)
OKLaboklab(40.08% 0.0234 -0.1101)
OKLCHoklch(40.08% 0.113 282)
XYZxyz(7.8111, 6.0388, 21.8688)
Luminance0.0604 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403D82 #7F823D
analogous
#3D5C82 #403D82 #633D82
triadic
#403D82 #82403D #3D8240
tetradic
#403D82 #823D5C #7F823D #3D8263
square
#403D82 #823D5C #7F823D #3D8263
split-complementary
#403D82 #82633D #5C823D
monochromatic
#17162F #2B2958 #403D82 #5551AC #7C79C0

Accessibility & contrast

On white

9.51
#403D82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#403D82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403D82
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403D82#FFFFFF#000000##FFFFFF
##403D821.009.512.219.51
#FFFFFF9.511.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B4884
Deuteranopia (green-blind)
#164380
Tritanopia (blue-blind)
#284C59
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #403d82;
/* rgb */ color: rgb(64, 61, 130);
/* oklch */ color: oklch(40.1% 0.113 282.0);
Tailwind
colors: {
  custom: {
    50: '#7a72a7',
    500: '#403d82',
    950: '#000000',
  },
}
SCSS
$custom: #403d82;
$custom-light: #7a72a7;
$custom-dark: #000000;
JSON
{
  "hex": "#403d82",
  "rgb": {
    "r": 64,
    "g": 61,
    "b": 130
  },
  "hsl": {
    "h": 242.609,
    "s": 36.126,
    "l": 37.451
  },
  "oklch": {
    "l": 0.40079,
    "c": 0.11261,
    "h": 282
  },
  "luminance": 0.06039
}

Semantic roles & 50–950 ramp

primary
#403D82
secondary
#A8AA71
accent
#CC5CC7
background
#F7F6FA
surface
#EEECF4
border
#C9C7CE
text
#09080F
muted
#7B7B7F

Preview Lab

Preview with #403D82

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

Preview Lab → · Contrast checker → · Palette generator →

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