#405BB4#405BB4

#405BB4 is a mid, vivid blue. Relative luminance 0.119; OKLCH L 49.8% C 0.144 H 268.1°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#405BB4
RGBrgb(64, 91, 180)
HSLhsl(226, 48%, 48%)
HSVhsv(226, 64%, 71%)
CMYKcmyk(64.4%, 49.4%, 0%, 29.4%)
CIE-LABlab(41.00, 18.93, -50.38)
CIE-LCHlch(41.00, 53.82, 290.59°)
OKLaboklab(49.83% -0.0047 -0.1443)
OKLCHoklch(49.83% 0.144 268.1)
XYZxyz(14.0908, 11.8662, 44.7190)
Luminance0.1187 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405BB4 #B49940
analogous
#4095B4 #405BB4 #5F40B4
triadic
#405BB4 #B4405B #5BB440
tetradic
#405BB4 #B44095 #B49940 #40B45F
square
#405BB4 #B44095 #B49940 #40B45F
split-complementary
#405BB4 #B45F40 #95B440
monochromatic
#202D5A #304487 #405BB4 #687FC9 #95A5D9

Accessibility & contrast

On white

6.23
#405BB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#405BB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405BB4
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405BB4#FFFFFF#000000##FFFFFF
##405BB41.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B66B7
Deuteranopia (green-blind)
#0F5CB2
Tritanopia (blue-blind)
#00707F
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #405bb4;
/* rgb */ color: rgb(64, 91, 180);
/* oklch */ color: oklch(49.8% 0.144 268.1);
Tailwind
colors: {
  custom: {
    50: '#8189cb',
    500: '#405bb4',
    950: '#000000',
  },
}
SCSS
$custom: #405bb4;
$custom-light: #8189cb;
$custom-dark: #000000;
JSON
{
  "hex": "#405bb4",
  "rgb": {
    "r": 64,
    "g": 91,
    "b": 180
  },
  "hsl": {
    "h": 226.034,
    "s": 47.541,
    "l": 47.843
  },
  "oklch": {
    "l": 0.49828,
    "c": 0.14439,
    "h": 268.1
  },
  "luminance": 0.11867
}

Semantic roles & 50–950 ramp

primary
#405BB4
secondary
#C5B78B
accent
#B851D7
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #405BB4

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

Preview Lab → · Contrast checker → · Palette generator →

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