#403497#403497

#403497 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 40.1% C 0.155 H 282.3°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).

Color values

HEX#403497
RGBrgb(64, 52, 151)
HSLhsl(247, 49%, 40%)
HSVhsv(247, 66%, 59%)
CMYKcmyk(57.6%, 65.6%, 0%, 40.8%)
CIE-LABlab(28.85, 33.96, -52.69)
CIE-LCHlch(28.85, 62.69, 302.80°)
OKLaboklab(40.09% 0.0331 -0.1515)
OKLCHoklch(40.09% 0.155 282.3)
XYZxyz(8.9265, 5.7798, 29.9174)
Luminance0.0578 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403497 #8B9734
analogous
#345997 #403497 #723497
triadic
#403497 #974034 #349740
tetradic
#403497 #973459 #8B9734 #349772
square
#403497 #973459 #8B9734 #349772
split-complementary
#403497 #977234 #599734
monochromatic
#19153C #2D2469 #403497 #5748C0 #8176D0

Accessibility & contrast

On white

9.74
#403497 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#403497 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403497
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403497#FFFFFF#000000##FFFFFF
##4034971.009.742.169.74
#FFFFFF9.741.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479A
Deuteranopia (green-blind)
#004195
Tritanopia (blue-blind)
#134D60
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #403497;
/* rgb */ color: rgb(64, 52, 151);
/* oklch */ color: oklch(40.1% 0.155 282.3);
Tailwind
colors: {
  custom: {
    50: '#7e6cb6',
    500: '#403497',
    950: '#000000',
  },
}
SCSS
$custom: #403497;
$custom-light: #7e6cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#403497",
  "rgb": {
    "r": 64,
    "g": 52,
    "b": 151
  },
  "hsl": {
    "h": 247.273,
    "s": 48.768,
    "l": 39.804
  },
  "oklch": {
    "l": 0.40094,
    "c": 0.15505,
    "h": 282.3
  },
  "luminance": 0.0578
}

Semantic roles & 50–950 ramp

primary
#403497
secondary
#AFB86F
accent
#D84FC8
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0711
muted
#7C7A80

Preview Lab

Preview with #403497

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

Preview Lab → · Contrast checker → · Palette generator →

#403497 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva