#405AB9#405AB9

#405AB9 is a mid, vivid blue. Relative luminance 0.119; OKLCH L 50.0% C 0.153 H 268.8°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#405AB9
RGBrgb(64, 90, 185)
HSLhsl(227, 49%, 49%)
HSVhsv(227, 65%, 73%)
CMYKcmyk(65.4%, 51.4%, 0%, 27.5%)
CIE-LABlab(41.06, 21.36, -53.22)
CIE-LCHlch(41.06, 57.34, 291.86°)
OKLaboklab(49.98% -0.0032 -0.1527)
OKLCHoklch(49.98% 0.153 268.8)
XYZxyz(14.5245, 11.9038, 47.4218)
Luminance0.1191 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405AB9 #B99F40
analogous
#4097B9 #405AB9 #6340B9
triadic
#405AB9 #B9405A #5AB940
tetradic
#405AB9 #B94097 #B99F40 #40B963
square
#405AB9 #B94097 #B99F40 #40B963
split-complementary
#405AB9 #B96340 #97B940
monochromatic
#212E5E #30448C #405AB9 #6B7FCC #98A6DB

Accessibility & contrast

On white

6.21
#405AB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#405AB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405AB9
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405AB9#FFFFFF#000000##FFFFFF
##405AB91.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2267BC
Deuteranopia (green-blind)
#005CB7
Tritanopia (blue-blind)
#007081
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #405ab9;
/* rgb */ color: rgb(64, 90, 185);
/* oklch */ color: oklch(50.0% 0.153 268.8);
Tailwind
colors: {
  custom: {
    50: '#8288cf',
    500: '#405ab9',
    950: '#000000',
  },
}
SCSS
$custom: #405ab9;
$custom-light: #8288cf;
$custom-dark: #000000;
JSON
{
  "hex": "#405ab9",
  "rgb": {
    "r": 64,
    "g": 90,
    "b": 185
  },
  "hsl": {
    "h": 227.107,
    "s": 48.594,
    "l": 48.824
  },
  "oklch": {
    "l": 0.4998,
    "c": 0.15269,
    "h": 268.8
  },
  "luminance": 0.11905
}

Semantic roles & 50–950 ramp

primary
#405AB9
secondary
#C7BB8E
accent
#BB50D8
background
#F8F8FC
surface
#F0EFF9
border
#CBCAD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #405AB9

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

Preview Lab → · Contrast checker → · Palette generator →

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