#405B97#405B97

#405B97 is a mid, moderate blue. Relative luminance 0.108; OKLCH L 47.9% C 0.102 H 264.5°. Best body text is #FFFFFF at 6.64:1 contrast (WCAG AA passes).

Color values

HEX#405B97
RGBrgb(64, 91, 151)
HSLhsl(221, 40%, 42%)
HSVhsv(221, 58%, 59%)
CMYKcmyk(57.6%, 39.7%, 0%, 40.8%)
CIE-LABlab(39.25, 8.71, -35.96)
CIE-LCHlch(39.25, 37.00, 283.62°)
OKLaboklab(47.92% -0.0097 -0.102)
OKLCHoklch(47.92% 0.102 264.5)
XYZxyz(11.4395, 10.8056, 30.7550)
Luminance0.1081 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405B97 #977C40
analogous
#408797 #405B97 #504097
triadic
#405B97 #97405B #5B9740
tetradic
#405B97 #974087 #977C40 #409750
square
#405B97 #974087 #977C40 #409750
split-complementary
#405B97 #975040 #879740
monochromatic
#1C2741 #2E416C #405B97 #5B78B9 #869BCC

Accessibility & contrast

On white

6.64
#405B97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#405B97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405B97
6.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405B97#FFFFFF#000000##FFFFFF
##405B971.006.643.166.64
#FFFFFF6.641.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#426199
Deuteranopia (green-blind)
#375996
Tritanopia (blue-blind)
#036871
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #405b97;
/* rgb */ color: rgb(64, 91, 151);
/* oklch */ color: oklch(47.9% 0.102 264.5);
Tailwind
colors: {
  custom: {
    50: '#7c89b6',
    500: '#405b97',
    950: '#000000',
  },
}
SCSS
$custom: #405b97;
$custom-light: #7c89b6;
$custom-dark: #000000;
JSON
{
  "hex": "#405b97",
  "rgb": {
    "r": 64,
    "g": 91,
    "b": 151
  },
  "hsl": {
    "h": 221.379,
    "s": 40.465,
    "l": 42.157
  },
  "oklch": {
    "l": 0.4792,
    "c": 0.10244,
    "h": 264.5
  },
  "luminance": 0.10807
}

Semantic roles & 50–950 ramp

primary
#405B97
secondary
#B6A47D
accent
#AB57D0
background
#F7F8FB
surface
#EEEFF6
border
#C9CAD0
text
#0A0B11
muted
#7C7C80

Preview Lab

Preview with #405B97

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

Preview Lab → · Contrast checker → · Palette generator →

#405B97 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva