#405CBF#405CBF

#405CBF is a mid, vivid blue. Relative luminance 0.125; OKLCH L 50.8% C 0.159 H 268.4°. Best body text is #FFFFFF at 6.00:1 contrast (WCAG AA passes).

Color values

HEX#405CBF
RGBrgb(64, 92, 191)
HSLhsl(227, 50%, 50%)
HSVhsv(227, 66%, 75%)
CMYKcmyk(66.5%, 51.8%, 0%, 25.1%)
CIE-LABlab(42.01, 22.21, -55.19)
CIE-LCHlch(42.01, 59.50, 291.92°)
OKLaboklab(50.83% -0.0045 -0.1584)
OKLCHoklch(50.83% 0.159 268.4)
XYZxyz(15.3422, 12.5044, 50.8852)
Luminance0.1251 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405CBF #BFA340
analogous
#409BBF #405CBF #6440BF
triadic
#405CBF #BF405C #5CBF40
tetradic
#405CBF #BF409B #BFA340 #40BF64
square
#405CBF #BF409B #BFA340 #40BF64
split-complementary
#405CBF #BF6440 #9BBF40
monochromatic
#213063 #314691 #405CBF #6E83CE #9CAADE

Accessibility & contrast

On white

6.00
#405CBF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#405CBF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405CBF
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405CBF#FFFFFF#000000##FFFFFF
##405CBF1.006.003.506.00
#FFFFFF6.001.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F69C3
Deuteranopia (green-blind)
#005EBD
Tritanopia (blue-blind)
#007384
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #405cbf;
/* rgb */ color: rgb(64, 92, 191);
/* oklch */ color: oklch(50.8% 0.159 268.4);
Tailwind
colors: {
  custom: {
    50: '#8389d3',
    500: '#405cbf',
    950: '#000000',
  },
}
SCSS
$custom: #405cbf;
$custom-light: #8389d3;
$custom-dark: #000000;
JSON
{
  "hex": "#405cbf",
  "rgb": {
    "r": 64,
    "g": 92,
    "b": 191
  },
  "hsl": {
    "h": 226.772,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.50825,
    "c": 0.15851,
    "h": 268.4
  },
  "luminance": 0.12506
}

Semantic roles & 50–950 ramp

primary
#405CBF
secondary
#CABD91
accent
#BB4ED9
background
#F8F8FD
surface
#F0F0FA
border
#CBCBD3
text
#0C0B14
muted
#7D7C83

Preview Lab

Preview with #405CBF

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

Preview Lab → · Contrast checker → · Palette generator →

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