#405C97#405C97

#405C97 is a mid, moderate blue. Relative luminance 0.110; OKLCH L 48.1% C 0.101 H 263.8°. Best body text is #FFFFFF at 6.57:1 contrast (WCAG AA passes).

Color values

HEX#405C97
RGBrgb(64, 92, 151)
HSLhsl(221, 40%, 42%)
HSVhsv(221, 58%, 59%)
CMYKcmyk(57.6%, 39.1%, 0%, 40.8%)
CIE-LABlab(39.54, 8.07, -35.50)
CIE-LCHlch(39.54, 36.41, 282.81°)
OKLaboklab(48.15% -0.0109 -0.1006)
OKLCHoklch(48.15% 0.101 263.8)
XYZxyz(11.5255, 10.9777, 30.7837)
Luminance0.1098 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405C97 #977B40
analogous
#408797 #405C97 #504097
triadic
#405C97 #97405C #5C9740
tetradic
#405C97 #974087 #977B40 #409750
square
#405C97 #974087 #977B40 #409750
split-complementary
#405C97 #975040 #879740
monochromatic
#1C2841 #2E426C #405C97 #5B79B9 #869CCC

Accessibility & contrast

On white

6.57
#405C97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#405C97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405C97
6.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405C97#FFFFFF#000000##FFFFFF
##405C971.006.573.206.57
#FFFFFF6.571.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#446199
Deuteranopia (green-blind)
#395996
Tritanopia (blue-blind)
#036972
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #405c97;
/* rgb */ color: rgb(64, 92, 151);
/* oklch */ color: oklch(48.1% 0.101 263.8);
Tailwind
colors: {
  custom: {
    50: '#7c89b6',
    500: '#405c97',
    950: '#000000',
  },
}
SCSS
$custom: #405c97;
$custom-light: #7c89b6;
$custom-dark: #000000;
JSON
{
  "hex": "#405c97",
  "rgb": {
    "r": 64,
    "g": 92,
    "b": 151
  },
  "hsl": {
    "h": 220.69,
    "s": 40.465,
    "l": 42.157
  },
  "oklch": {
    "l": 0.48145,
    "c": 0.1012,
    "h": 263.8
  },
  "luminance": 0.10979
}

Semantic roles & 50–950 ramp

primary
#405C97
secondary
#B6A47D
accent
#A957D0
background
#F7F8FB
surface
#EEF0F6
border
#C9CBD0
text
#0A0B11
muted
#7C7C80

Preview Lab

Preview with #405C97

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

Preview Lab → · Contrast checker → · Palette generator →

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