#405FB1#405FB1

#405FB1 is a mid, vivid blue. Relative luminance 0.124; OKLCH L 50.5% C 0.135 H 266.1°. Best body text is #FFFFFF at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#405FB1
RGBrgb(64, 95, 177)
HSLhsl(224, 47%, 47%)
HSVhsv(224, 64%, 69%)
CMYKcmyk(63.8%, 46.3%, 0%, 30.6%)
CIE-LABlab(41.92, 15.28, -47.15)
CIE-LCHlch(41.92, 49.57, 287.96°)
OKLaboklab(50.47% -0.0091 -0.1347)
OKLCHoklch(50.47% 0.135 266.1)
XYZxyz(14.1396, 12.4475, 43.2439)
Luminance0.1245 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405FB1 #B19240
analogous
#4098B1 #405FB1 #5A40B1
triadic
#405FB1 #B1405F #5FB140
tetradic
#405FB1 #B14098 #B19240 #40B15A
square
#405FB1 #B14098 #B19240 #40B15A
split-complementary
#405FB1 #B15A40 #98B140
monochromatic
#1F2F57 #304784 #405FB1 #6681C8 #93A6D8

Accessibility & contrast

On white

6.02
#405FB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#405FB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405FB1
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405FB1#FFFFFF#000000##FFFFFF
##405FB11.006.023.496.02
#FFFFFF6.021.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3768B4
Deuteranopia (green-blind)
#235EAF
Tritanopia (blue-blind)
#00727F
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #405fb1;
/* rgb */ color: rgb(64, 95, 177);
/* oklch */ color: oklch(50.5% 0.135 266.1);
Tailwind
colors: {
  custom: {
    50: '#808cc9',
    500: '#405fb1',
    950: '#000000',
  },
}
SCSS
$custom: #405fb1;
$custom-light: #808cc9;
$custom-dark: #000000;
JSON
{
  "hex": "#405fb1",
  "rgb": {
    "r": 64,
    "g": 95,
    "b": 177
  },
  "hsl": {
    "h": 223.54,
    "s": 46.888,
    "l": 47.255
  },
  "oklch": {
    "l": 0.50466,
    "c": 0.13506,
    "h": 266.1
  },
  "luminance": 0.12449
}

Semantic roles & 50–950 ramp

primary
#405FB1
secondary
#C3B489
accent
#B251D7
background
#F8F8FC
surface
#EFF0F8
border
#CACBD1
text
#0B0C13
muted
#7C7D82

Preview Lab

Preview with #405FB1

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

Preview Lab → · Contrast checker → · Palette generator →

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