#405FB7#405FB7

#405FB7 is a mid, vivid blue. Relative luminance 0.127; OKLCH L 50.9% C 0.144 H 266.7°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#405FB7
RGBrgb(64, 95, 183)
HSLhsl(224, 48%, 48%)
HSVhsv(224, 65%, 72%)
CMYKcmyk(65%, 48.1%, 0%, 28.2%)
CIE-LABlab(42.30, 17.42, -50.06)
CIE-LCHlch(42.30, 53.01, 289.19°)
OKLaboklab(50.88% -0.0082 -0.1433)
OKLCHoklch(50.88% 0.144 266.7)
XYZxyz(14.7509, 12.6919, 46.4630)
Luminance0.1269 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405FB7 #B79840
analogous
#409AB7 #405FB7 #5C40B7
triadic
#405FB7 #B7405F #5FB740
tetradic
#405FB7 #B7409A #B79840 #40B75C
square
#405FB7 #B7409A #B79840 #40B75C
split-complementary
#405FB7 #B75C40 #9AB740
monochromatic
#20305C #30478A #405FB7 #6983CB #97A8DB

Accessibility & contrast

On white

5.93
#405FB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#405FB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405FB7
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405FB7#FFFFFF#000000##FFFFFF
##405FB71.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#316ABA
Deuteranopia (green-blind)
#185FB5
Tritanopia (blue-blind)
#007382
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #405fb7;
/* rgb */ color: rgb(64, 95, 183);
/* oklch */ color: oklch(50.9% 0.144 266.7);
Tailwind
colors: {
  custom: {
    50: '#818ccd',
    500: '#405fb7',
    950: '#000000',
  },
}
SCSS
$custom: #405fb7;
$custom-light: #818ccd;
$custom-dark: #000000;
JSON
{
  "hex": "#405fb7",
  "rgb": {
    "r": 64,
    "g": 95,
    "b": 183
  },
  "hsl": {
    "h": 224.37,
    "s": 48.178,
    "l": 48.431
  },
  "oklch": {
    "l": 0.50875,
    "c": 0.14355,
    "h": 266.7
  },
  "luminance": 0.12693
}

Semantic roles & 50–950 ramp

primary
#405FB7
secondary
#C6B78D
accent
#B450D8
background
#F8F8FC
surface
#F0F0F9
border
#CBCBD2
text
#0B0C13
muted
#7C7D82

Preview Lab

Preview with #405FB7

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

Preview Lab → · Contrast checker → · Palette generator →

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