#405FB4#405FB4

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

Color values

HEX#405FB4
RGBrgb(64, 95, 180)
HSLhsl(224, 48%, 48%)
HSVhsv(224, 64%, 71%)
CMYKcmyk(64.4%, 47.2%, 0%, 29.4%)
CIE-LABlab(42.11, 16.35, -48.61)
CIE-LCHlch(42.11, 51.29, 288.59°)
OKLaboklab(50.67% -0.0087 -0.139)
OKLCHoklch(50.67% 0.139 266.4)
XYZxyz(14.4419, 12.5684, 44.8360)
Luminance0.1257 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405FB4 #B49540
analogous
#4099B4 #405FB4 #5B40B4
triadic
#405FB4 #B4405F #5FB440
tetradic
#405FB4 #B44099 #B49540 #40B45B
square
#405FB4 #B44099 #B49540 #40B45B
split-complementary
#405FB4 #B45B40 #99B440
monochromatic
#202F5A #304787 #405FB4 #6882C9 #95A7D9

Accessibility & contrast

On white

5.98
#405FB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#405FB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405FB4
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405FB4#FFFFFF#000000##FFFFFF
##405FB41.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3469B7
Deuteranopia (green-blind)
#1E5EB2
Tritanopia (blue-blind)
#007381
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #405fb4;
/* rgb */ color: rgb(64, 95, 180);
/* oklch */ color: oklch(50.7% 0.139 266.4);
Tailwind
colors: {
  custom: {
    50: '#808ccb',
    500: '#405fb4',
    950: '#000000',
  },
}
SCSS
$custom: #405fb4;
$custom-light: #808ccb;
$custom-dark: #000000;
JSON
{
  "hex": "#405fb4",
  "rgb": {
    "r": 64,
    "g": 95,
    "b": 180
  },
  "hsl": {
    "h": 223.966,
    "s": 47.541,
    "l": 47.843
  },
  "oklch": {
    "l": 0.50669,
    "c": 0.13931,
    "h": 266.4
  },
  "luminance": 0.1257
}

Semantic roles & 50–950 ramp

primary
#405FB4
secondary
#C5B58B
accent
#B351D7
background
#F8F8FC
surface
#EFF0F8
border
#CACBD1
text
#0B0C13
muted
#7C7D82

Preview Lab

Preview with #405FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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