#405BB5#405BB5

#405BB5 is a mid, vivid blue. Relative luminance 0.119; OKLCH L 49.9% C 0.146 H 268.2°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#405BB5
RGBrgb(64, 91, 181)
HSLhsl(226, 48%, 48%)
HSVhsv(226, 65%, 71%)
CMYKcmyk(64.6%, 49.7%, 0%, 29%)
CIE-LABlab(41.07, 19.28, -50.87)
CIE-LCHlch(41.07, 54.40, 290.76°)
OKLaboklab(49.9% -0.0046 -0.1457)
OKLCHoklch(49.9% 0.146 268.2)
XYZxyz(14.1931, 11.9071, 45.2574)
Luminance0.1191 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405BB5 #B59A40
analogous
#4095B5 #405BB5 #5F40B5
triadic
#405BB5 #B5405B #5BB540
tetradic
#405BB5 #B54095 #B59A40 #40B55F
square
#405BB5 #B54095 #B59A40 #40B55F
split-complementary
#405BB5 #B55F40 #95B540
monochromatic
#202E5B #304488 #405BB5 #687FCA #96A5DA

Accessibility & contrast

On white

6.21
#405BB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#405BB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405BB5
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405BB5#FFFFFF#000000##FFFFFF
##405BB51.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #405bb5;
/* rgb */ color: rgb(64, 91, 181);
/* oklch */ color: oklch(49.9% 0.146 268.2);
Tailwind
colors: {
  custom: {
    50: '#8189cc',
    500: '#405bb5',
    950: '#000000',
  },
}
SCSS
$custom: #405bb5;
$custom-light: #8189cc;
$custom-dark: #000000;
JSON
{
  "hex": "#405bb5",
  "rgb": {
    "r": 64,
    "g": 91,
    "b": 181
  },
  "hsl": {
    "h": 226.154,
    "s": 47.755,
    "l": 48.039
  },
  "oklch": {
    "l": 0.49899,
    "c": 0.14579,
    "h": 268.2
  },
  "luminance": 0.11908
}

Semantic roles & 50–950 ramp

primary
#405BB5
secondary
#C5B88B
accent
#B850D7
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #405BB5

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

Preview Lab → · Contrast checker → · Palette generator →

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