#405FB5#405FB5

#405FB5 is a mid, vivid blue. Relative luminance 0.126; OKLCH L 50.7% C 0.141 H 266.5°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#405FB5
RGBrgb(64, 95, 181)
HSLhsl(224, 48%, 48%)
HSVhsv(224, 65%, 71%)
CMYKcmyk(64.6%, 47.5%, 0%, 29%)
CIE-LABlab(42.17, 16.71, -49.10)
CIE-LCHlch(42.17, 51.86, 288.80°)
OKLaboklab(50.74% -0.0085 -0.1405)
OKLCHoklch(50.74% 0.141 266.5)
XYZxyz(14.5442, 12.6093, 45.3745)
Luminance0.1261 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405FB5 #B59640
analogous
#4099B5 #405FB5 #5C40B5
triadic
#405FB5 #B5405F #5FB540
tetradic
#405FB5 #B54099 #B59640 #40B55C
square
#405FB5 #B54099 #B59640 #40B55C
split-complementary
#405FB5 #B55C40 #99B540
monochromatic
#20305B #304788 #405FB5 #6882CA #96A8DA

Accessibility & contrast

On white

5.96
#405FB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#405FB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405FB5
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405FB5#FFFFFF#000000##FFFFFF
##405FB51.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3369B8
Deuteranopia (green-blind)
#1D5FB3
Tritanopia (blue-blind)
#007381
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #405fb5;
/* rgb */ color: rgb(64, 95, 181);
/* oklch */ color: oklch(50.7% 0.141 266.5);
Tailwind
colors: {
  custom: {
    50: '#818ccc',
    500: '#405fb5',
    950: '#000000',
  },
}
SCSS
$custom: #405fb5;
$custom-light: #818ccc;
$custom-dark: #000000;
JSON
{
  "hex": "#405fb5",
  "rgb": {
    "r": 64,
    "g": 95,
    "b": 181
  },
  "hsl": {
    "h": 224.103,
    "s": 47.755,
    "l": 48.039
  },
  "oklch": {
    "l": 0.50738,
    "c": 0.14073,
    "h": 266.5
  },
  "luminance": 0.12611
}

Semantic roles & 50–950 ramp

primary
#405FB5
secondary
#C5B68B
accent
#B450D7
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0C13
muted
#7C7D82

Preview Lab

Preview with #405FB5

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

Preview Lab → · Contrast checker → · Palette generator →

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