#405FB9#405FB9

#405FB9 is a mid, vivid blue. Relative luminance 0.128; OKLCH L 51.0% C 0.146 H 266.9°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#405FB9
RGBrgb(64, 95, 185)
HSLhsl(225, 49%, 49%)
HSVhsv(225, 65%, 73%)
CMYKcmyk(65.4%, 48.6%, 0%, 27.5%)
CIE-LABlab(42.42, 18.14, -51.03)
CIE-LCHlch(42.42, 54.15, 289.57°)
OKLaboklab(51.01% -0.008 -0.1461)
OKLCHoklch(51.01% 0.146 266.9)
XYZxyz(14.9605, 12.7758, 47.5671)
Luminance0.1278 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405FB9 #B99A40
analogous
#409CB9 #405FB9 #5E40B9
triadic
#405FB9 #B9405F #5FB940
tetradic
#405FB9 #B9409C #B99A40 #40B95E
square
#405FB9 #B9409C #B99A40 #40B95E
split-complementary
#405FB9 #B95E40 #9CB940
monochromatic
#21305E #30488C #405FB9 #6B83CC #98A9DB

Accessibility & contrast

On white

5.91
#405FB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#405FB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405FB9
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405FB9#FFFFFF#000000##FFFFFF
##405FB91.005.913.565.91
#FFFFFF5.911.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F6ABC
Deuteranopia (green-blind)
#135FB7
Tritanopia (blue-blind)
#007483
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #405fb9;
/* rgb */ color: rgb(64, 95, 185);
/* oklch */ color: oklch(51.0% 0.146 266.9);
Tailwind
colors: {
  custom: {
    50: '#818ccf',
    500: '#405fb9',
    950: '#000000',
  },
}
SCSS
$custom: #405fb9;
$custom-light: #818ccf;
$custom-dark: #000000;
JSON
{
  "hex": "#405fb9",
  "rgb": {
    "r": 64,
    "g": 95,
    "b": 185
  },
  "hsl": {
    "h": 224.628,
    "s": 48.594,
    "l": 48.824
  },
  "oklch": {
    "l": 0.51014,
    "c": 0.14636,
    "h": 266.9
  },
  "luminance": 0.12777
}

Semantic roles & 50–950 ramp

primary
#405FB9
secondary
#C7B88E
accent
#B550D8
background
#F8F8FC
surface
#F0F0F9
border
#CBCBD2
text
#0B0C14
muted
#7C7D82

Preview Lab

Preview with #405FB9

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

Preview Lab → · Contrast checker → · Palette generator →

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