#405FBD#405FBD

#405FBD is a mid, vivid blue. Relative luminance 0.129; OKLCH L 51.3% C 0.152 H 267.2°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#405FBD
RGBrgb(64, 95, 189)
HSLhsl(225, 49%, 50%)
HSVhsv(225, 66%, 74%)
CMYKcmyk(66.1%, 49.7%, 0%, 25.9%)
CIE-LABlab(42.68, 19.57, -52.94)
CIE-LCHlch(42.68, 56.44, 290.29°)
OKLaboklab(51.3% -0.0075 -0.1518)
OKLCHoklch(51.3% 0.152 267.2)
XYZxyz(15.3887, 12.9471, 49.8223)
Luminance0.1295 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405FBD #BD9E40
analogous
#409EBD #405FBD #6040BD
triadic
#405FBD #BD405F #5FBD40
tetradic
#405FBD #BD409E #BD9E40 #40BD60
square
#405FBD #BD409E #BD9E40 #40BD60
split-complementary
#405FBD #BD6040 #9EBD40
monochromatic
#213162 #31488F #405FBD #6D85CD #9AABDD

Accessibility & contrast

On white

5.85
#405FBD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#405FBD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405FBD
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405FBD#FFFFFF#000000##FFFFFF
##405FBD1.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B6BC0
Deuteranopia (green-blind)
#045FBB
Tritanopia (blue-blind)
#007585
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #405fbd;
/* rgb */ color: rgb(64, 95, 189);
/* oklch */ color: oklch(51.3% 0.152 267.2);
Tailwind
colors: {
  custom: {
    50: '#828bd1',
    500: '#405fbd',
    950: '#000000',
  },
}
SCSS
$custom: #405fbd;
$custom-light: #828bd1;
$custom-dark: #000000;
JSON
{
  "hex": "#405fbd",
  "rgb": {
    "r": 64,
    "g": 95,
    "b": 189
  },
  "hsl": {
    "h": 225.12,
    "s": 49.407,
    "l": 49.608
  },
  "oklch": {
    "l": 0.51295,
    "c": 0.15195,
    "h": 267.2
  },
  "luminance": 0.12949
}

Semantic roles & 50–950 ramp

primary
#405FBD
secondary
#C9BB90
accent
#B74FD9
background
#F8F8FC
surface
#F0F0F9
border
#CBCBD2
text
#0C0C14
muted
#7D7D82

Preview Lab

Preview with #405FBD

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

Preview Lab → · Contrast checker → · Palette generator →

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