#405FBB#405FBB

#405FBB is a mid, vivid blue. Relative luminance 0.129; OKLCH L 51.2% C 0.149 H 267.0°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#405FBB
RGBrgb(64, 95, 187)
HSLhsl(225, 49%, 49%)
HSVhsv(225, 66%, 73%)
CMYKcmyk(65.8%, 49.2%, 0%, 26.7%)
CIE-LABlab(42.55, 18.85, -51.98)
CIE-LCHlch(42.55, 55.30, 289.94°)
OKLaboklab(51.15% -0.0077 -0.149)
OKLCHoklch(51.15% 0.149 267)
XYZxyz(15.1731, 12.8608, 48.6868)
Luminance0.1286 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405FBB #BB9C40
analogous
#409DBB #405FBB #5F40BB
triadic
#405FBB #BB405F #5FBB40
tetradic
#405FBB #BB409D #BB9C40 #40BB5F
square
#405FBB #BB409D #BB9C40 #40BB5F
split-complementary
#405FBB #BB5F40 #9DBB40
monochromatic
#213160 #30488D #405FBB #6C84CD #99AADC

Accessibility & contrast

On white

5.88
#405FBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#405FBB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405FBB
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405FBB#FFFFFF#000000##FFFFFF
##405FBB1.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D6ABE
Deuteranopia (green-blind)
#0D5FB9
Tritanopia (blue-blind)
#007484
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #405fbb;
/* rgb */ color: rgb(64, 95, 187);
/* oklch */ color: oklch(51.2% 0.149 267.0);
Tailwind
colors: {
  custom: {
    50: '#828bd0',
    500: '#405fbb',
    950: '#000000',
  },
}
SCSS
$custom: #405fbb;
$custom-light: #828bd0;
$custom-dark: #000000;
JSON
{
  "hex": "#405fbb",
  "rgb": {
    "r": 64,
    "g": 95,
    "b": 187
  },
  "hsl": {
    "h": 224.878,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.51154,
    "c": 0.14916,
    "h": 267
  },
  "luminance": 0.12862
}

Semantic roles & 50–950 ramp

primary
#405FBB
secondary
#C8BA8F
accent
#B64FD9
background
#F8F8FC
surface
#F0F0F9
border
#CBCBD2
text
#0C0C14
muted
#7D7D82

Preview Lab

Preview with #405FBB

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

Preview Lab → · Contrast checker → · Palette generator →

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