#405E97#405E97

#405E97 is a mid, moderate blue. Relative luminance 0.113; OKLCH L 48.6% C 0.099 H 262.3°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#405E97
RGBrgb(64, 94, 151)
HSLhsl(219, 40%, 42%)
HSVhsv(219, 58%, 59%)
CMYKcmyk(57.6%, 37.7%, 0%, 40.8%)
CIE-LABlab(40.13, 6.80, -34.57)
CIE-LCHlch(40.13, 35.24, 281.12°)
OKLaboklab(48.6% -0.0133 -0.0979)
OKLCHoklch(48.6% 0.099 262.3)
XYZxyz(11.7011, 11.3288, 30.8422)
Luminance0.1133 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405E97 #977940
analogous
#408A97 #405E97 #4D4097
triadic
#405E97 #97405E #5E9740
tetradic
#405E97 #97408A #977940 #40974D
square
#405E97 #97408A #977940 #40974D
split-complementary
#405E97 #974D40 #8A9740
monochromatic
#1C2841 #2E436C #405E97 #5B7BB9 #869ECC

Accessibility & contrast

On white

6.43
#405E97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#405E97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405E97
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405E97#FFFFFF#000000##FFFFFF
##405E971.006.433.276.43
#FFFFFF6.431.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#476399
Deuteranopia (green-blind)
#3C5B96
Tritanopia (blue-blind)
#016B73
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #405e97;
/* rgb */ color: rgb(64, 94, 151);
/* oklch */ color: oklch(48.6% 0.099 262.3);
Tailwind
colors: {
  custom: {
    50: '#7c8bb6',
    500: '#405e97',
    950: '#000000',
  },
}
SCSS
$custom: #405e97;
$custom-light: #7c8bb6;
$custom-dark: #000000;
JSON
{
  "hex": "#405e97",
  "rgb": {
    "r": 64,
    "g": 94,
    "b": 151
  },
  "hsl": {
    "h": 219.31,
    "s": 40.465,
    "l": 42.157
  },
  "oklch": {
    "l": 0.48599,
    "c": 0.09879,
    "h": 262.3
  },
  "luminance": 0.1133
}

Semantic roles & 50–950 ramp

primary
#405E97
secondary
#B6A27D
accent
#A757D0
background
#F7F8FB
surface
#EEF0F6
border
#C9CBD0
text
#0A0B11
muted
#7C7C80

Preview Lab

Preview with #405E97

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

Preview Lab → · Contrast checker → · Palette generator →

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