#403A82#403A82

#403A82 is a dark, moderate blue. Relative luminance 0.057; OKLCH L 39.5% C 0.117 H 283.4°. Best body text is #FFFFFF at 9.79:1 contrast (WCAG AA passes).

Color values

HEX#403A82
RGBrgb(64, 58, 130)
HSLhsl(245, 38%, 37%)
HSVhsv(245, 55%, 51%)
CMYKcmyk(50.8%, 55.4%, 0%, 49%)
CIE-LABlab(28.71, 23.20, -39.94)
CIE-LCHlch(28.71, 46.19, 300.15°)
OKLaboklab(39.48% 0.0272 -0.1139)
OKLCHoklch(39.48% 0.117 283.4)
XYZxyz(7.6555, 5.7274, 21.8169)
Luminance0.0573 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403A82 #7C823A
analogous
#3A5882 #403A82 #643A82
triadic
#403A82 #82403A #3A8240
tetradic
#403A82 #823A58 #7C823A #3A8264
square
#403A82 #823A58 #7C823A #3A8264
split-complementary
#403A82 #82643A #58823A
monochromatic
#16142D #2B2758 #403A82 #554DAC #7B75C1

Accessibility & contrast

On white

9.79
#403A82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#403A82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403A82
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403A82#FFFFFF#000000##FFFFFF
##403A821.009.792.159.79
#FFFFFF9.791.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#134684
Deuteranopia (green-blind)
#0E4180
Tritanopia (blue-blind)
#284A58
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #403a82;
/* rgb */ color: rgb(64, 58, 130);
/* oklch */ color: oklch(39.5% 0.117 283.4);
Tailwind
colors: {
  custom: {
    50: '#7a70a7',
    500: '#403a82',
    950: '#000000',
  },
}
SCSS
$custom: #403a82;
$custom-light: #7a70a7;
$custom-dark: #000000;
JSON
{
  "hex": "#403a82",
  "rgb": {
    "r": 64,
    "g": 58,
    "b": 130
  },
  "hsl": {
    "h": 245,
    "s": 38.298,
    "l": 36.863
  },
  "oklch": {
    "l": 0.39484,
    "c": 0.11713,
    "h": 283.4
  },
  "luminance": 0.05728
}

Semantic roles & 50–950 ramp

primary
#403A82
secondary
#A6AB6D
accent
#CE5AC5
background
#F7F6FA
surface
#EEECF4
border
#C9C7CE
text
#0A070F
muted
#7C7A7F

Preview Lab

Preview with #403A82

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

Preview Lab → · Contrast checker → · Palette generator →

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