#405A97#405A97

#405A97 is a mid, moderate blue. Relative luminance 0.106; OKLCH L 47.7% C 0.104 H 265.3°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#405A97
RGBrgb(64, 90, 151)
HSLhsl(222, 40%, 42%)
HSVhsv(222, 58%, 59%)
CMYKcmyk(57.6%, 40.4%, 0%, 40.8%)
CIE-LABlab(38.96, 9.35, -36.43)
CIE-LCHlch(38.96, 37.61, 284.40°)
OKLaboklab(47.7% -0.0085 -0.1033)
OKLCHoklch(47.7% 0.104 265.3)
XYZxyz(11.3545, 10.6358, 30.7267)
Luminance0.1064 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405A97 #977D40
analogous
#408697 #405A97 #524097
triadic
#405A97 #97405A #5A9740
tetradic
#405A97 #974086 #977D40 #409752
square
#405A97 #974086 #977D40 #409752
split-complementary
#405A97 #975240 #869740
monochromatic
#1C2741 #2E406C #405A97 #5B77B9 #869BCC

Accessibility & contrast

On white

6.71
#405A97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#405A97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405A97
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405A97#FFFFFF#000000##FFFFFF
##405A971.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#406099
Deuteranopia (green-blind)
#365896
Tritanopia (blue-blind)
#046771
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #405a97;
/* rgb */ color: rgb(64, 90, 151);
/* oklch */ color: oklch(47.7% 0.104 265.3);
Tailwind
colors: {
  custom: {
    50: '#7c88b6',
    500: '#405a97',
    950: '#000000',
  },
}
SCSS
$custom: #405a97;
$custom-light: #7c88b6;
$custom-dark: #000000;
JSON
{
  "hex": "#405a97",
  "rgb": {
    "r": 64,
    "g": 90,
    "b": 151
  },
  "hsl": {
    "h": 222.069,
    "s": 40.465,
    "l": 42.157
  },
  "oklch": {
    "l": 0.47695,
    "c": 0.10369,
    "h": 265.3
  },
  "luminance": 0.10637
}

Semantic roles & 50–950 ramp

primary
#405A97
secondary
#B6A57D
accent
#AC57D0
background
#F7F8FB
surface
#EEEFF6
border
#C9CAD0
text
#0A0B11
muted
#7C7C80

Preview Lab

Preview with #405A97

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

Preview Lab → · Contrast checker → · Palette generator →

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