#405FB6#405FB6

#405FB6 is a mid, vivid blue. Relative luminance 0.127; OKLCH L 50.8% C 0.142 H 266.6°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#405FB6
RGBrgb(64, 95, 182)
HSLhsl(224, 48%, 48%)
HSVhsv(224, 65%, 71%)
CMYKcmyk(64.8%, 47.8%, 0%, 28.6%)
CIE-LABlab(42.23, 17.07, -49.58)
CIE-LCHlch(42.23, 52.44, 288.99°)
OKLaboklab(50.81% -0.0084 -0.1419)
OKLCHoklch(50.81% 0.142 266.6)
XYZxyz(14.6472, 12.6505, 45.9168)
Luminance0.1265 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405FB6 #B69740
analogous
#409AB6 #405FB6 #5C40B6
triadic
#405FB6 #B6405F #5FB640
tetradic
#405FB6 #B6409A #B69740 #40B65C
square
#405FB6 #B6409A #B69740 #40B65C
split-complementary
#405FB6 #B65C40 #9AB640
monochromatic
#20305B #304789 #405FB6 #6983CA #96A8DA

Accessibility & contrast

On white

5.95
#405FB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#405FB6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405FB6
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405FB6#FFFFFF#000000##FFFFFF
##405FB61.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3269B9
Deuteranopia (green-blind)
#1B5FB4
Tritanopia (blue-blind)
#007382
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #405fb6;
/* rgb */ color: rgb(64, 95, 182);
/* oklch */ color: oklch(50.8% 0.142 266.6);
Tailwind
colors: {
  custom: {
    50: '#818ccc',
    500: '#405fb6',
    950: '#000000',
  },
}
SCSS
$custom: #405fb6;
$custom-light: #818ccc;
$custom-dark: #000000;
JSON
{
  "hex": "#405fb6",
  "rgb": {
    "r": 64,
    "g": 95,
    "b": 182
  },
  "hsl": {
    "h": 224.237,
    "s": 47.967,
    "l": 48.235
  },
  "oklch": {
    "l": 0.50806,
    "c": 0.14214,
    "h": 266.6
  },
  "luminance": 0.12652
}

Semantic roles & 50–950 ramp

primary
#405FB6
secondary
#C6B78C
accent
#B450D8
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0B0C13
muted
#7C7D82

Preview Lab

Preview with #405FB6

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

Preview Lab → · Contrast checker → · Palette generator →

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