#405F97#405F97

#405F97 is a mid, moderate blue. Relative luminance 0.115; OKLCH L 48.8% C 0.098 H 261.5°. Best body text is #FFFFFF at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#405F97
RGBrgb(64, 95, 151)
HSLhsl(219, 40%, 42%)
HSVhsv(219, 58%, 59%)
CMYKcmyk(57.6%, 37.1%, 0%, 40.8%)
CIE-LABlab(40.42, 6.16, -34.11)
CIE-LCHlch(40.42, 34.66, 280.24°)
OKLaboklab(48.83% -0.0144 -0.0965)
OKLCHoklch(48.83% 0.098 261.5)
XYZxyz(11.7906, 11.5078, 30.8721)
Luminance0.1151 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405F97 #977840
analogous
#408A97 #405F97 #4D4097
triadic
#405F97 #97405F #5F9740
tetradic
#405F97 #97408A #977840 #40974D
square
#405F97 #97408A #977840 #40974D
split-complementary
#405F97 #974D40 #8A9740
monochromatic
#1C2941 #2E446C #405F97 #5B7DB9 #869FCC

Accessibility & contrast

On white

6.36
#405F97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#405F97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405F97
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405F97#FFFFFF#000000##FFFFFF
##405F971.006.363.306.36
#FFFFFF6.361.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#486499
Deuteranopia (green-blind)
#3D5C96
Tritanopia (blue-blind)
#016B74
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #405f97;
/* rgb */ color: rgb(64, 95, 151);
/* oklch */ color: oklch(48.8% 0.098 261.5);
Tailwind
colors: {
  custom: {
    50: '#7c8cb6',
    500: '#405f97',
    950: '#000000',
  },
}
SCSS
$custom: #405f97;
$custom-light: #7c8cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#405f97",
  "rgb": {
    "r": 64,
    "g": 95,
    "b": 151
  },
  "hsl": {
    "h": 218.621,
    "s": 40.465,
    "l": 42.157
  },
  "oklch": {
    "l": 0.48827,
    "c": 0.0976,
    "h": 261.5
  },
  "luminance": 0.11509
}

Semantic roles & 50–950 ramp

primary
#405F97
secondary
#B6A27D
accent
#A557D0
background
#F7F8FB
surface
#EEF0F6
border
#C9CBD0
text
#0A0C11
muted
#7C7D80

Preview Lab

Preview with #405F97

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

Preview Lab → · Contrast checker → · Palette generator →

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