#405DBB#405DBB

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

Color values

HEX#405DBB
RGBrgb(64, 93, 187)
HSLhsl(226, 49%, 49%)
HSVhsv(226, 66%, 73%)
CMYKcmyk(65.8%, 50.3%, 0%, 26.7%)
CIE-LABlab(42.01, 20.14, -52.86)
CIE-LCHlch(42.01, 56.57, 290.86°)
OKLaboklab(50.74% -0.0058 -0.1516)
OKLCHoklch(50.74% 0.152 267.8)
XYZxyz(14.9953, 12.5052, 48.6276)
Luminance0.1251 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405DBB #BB9E40
analogous
#409BBB #405DBB #6140BB
triadic
#405DBB #BB405D #5DBB40
tetradic
#405DBB #BB409B #BB9E40 #40BB61
square
#405DBB #BB409B #BB9E40 #40BB61
split-complementary
#405DBB #BB6140 #9BBB40
monochromatic
#213060 #30468D #405DBB #6C82CD #99A9DC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##405DBB#FFFFFF#000000##FFFFFF
##405DBB1.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)
#2869BE
Deuteranopia (green-blind)
#005EB9
Tritanopia (blue-blind)
#007383
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #405dbb;
/* rgb */ color: rgb(64, 93, 187);
/* oklch */ color: oklch(50.7% 0.152 267.8);
Tailwind
colors: {
  custom: {
    50: '#828ad0',
    500: '#405dbb',
    950: '#000000',
  },
}
SCSS
$custom: #405dbb;
$custom-light: #828ad0;
$custom-dark: #000000;
JSON
{
  "hex": "#405dbb",
  "rgb": {
    "r": 64,
    "g": 93,
    "b": 187
  },
  "hsl": {
    "h": 225.854,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.5074,
    "c": 0.15168,
    "h": 267.8
  },
  "luminance": 0.12507
}

Semantic roles & 50–950 ramp

primary
#405DBB
secondary
#C8BB8F
accent
#B84FD9
background
#F8F8FC
surface
#F0F0F9
border
#CBCBD2
text
#0C0B14
muted
#7D7C82

Preview Lab

Preview with #405DBB

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

Preview Lab → · Contrast checker → · Palette generator →

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