#405FBE#405FBE

#405FBE is a mid, vivid blue. Relative luminance 0.130; OKLCH L 51.4% C 0.153 H 267.2°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#405FBE
RGBrgb(64, 95, 190)
HSLhsl(225, 50%, 50%)
HSVhsv(225, 66%, 75%)
CMYKcmyk(66.3%, 50%, 0%, 25.5%)
CIE-LABlab(42.75, 19.93, -53.41)
CIE-LCHlch(42.75, 57.01, 290.46°)
OKLaboklab(51.37% -0.0074 -0.1532)
OKLCHoklch(51.37% 0.153 267.2)
XYZxyz(15.4976, 12.9907, 50.3959)
Luminance0.1299 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405FBE #BE9F40
analogous
#409EBE #405FBE #6040BE
triadic
#405FBE #BE405F #5FBE40
tetradic
#405FBE #BE409E #BE9F40 #40BE60
square
#405FBE #BE409E #BE9F40 #40BE60
split-complementary
#405FBE #BE6040 #9EBE40
monochromatic
#213162 #314890 #405FBE #6D85CE #9BABDD

Accessibility & contrast

On white

5.84
#405FBE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#405FBE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405FBE
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405FBE#FFFFFF#000000##FFFFFF
##405FBE1.005.843.605.84
#FFFFFF5.841.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A6BC1
Deuteranopia (green-blind)
#0060BC
Tritanopia (blue-blind)
#007585
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #405fbe;
/* rgb */ color: rgb(64, 95, 190);
/* oklch */ color: oklch(51.4% 0.153 267.2);
Tailwind
colors: {
  custom: {
    50: '#828bd2',
    500: '#405fbe',
    950: '#000000',
  },
}
SCSS
$custom: #405fbe;
$custom-light: #828bd2;
$custom-dark: #000000;
JSON
{
  "hex": "#405fbe",
  "rgb": {
    "r": 64,
    "g": 95,
    "b": 190
  },
  "hsl": {
    "h": 225.238,
    "s": 49.606,
    "l": 49.804
  },
  "oklch": {
    "l": 0.51366,
    "c": 0.15335,
    "h": 267.2
  },
  "luminance": 0.12992
}

Semantic roles & 50–950 ramp

primary
#405FBE
secondary
#C9BB90
accent
#B74FD9
background
#F8F8FD
surface
#F0F0FA
border
#CBCBD3
text
#0C0C14
muted
#7D7D83

Preview Lab

Preview with #405FBE

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

Preview Lab → · Contrast checker → · Palette generator →

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