#405AB1#405AB1

#405AB1 is a mid, vivid blue. Relative luminance 0.116; OKLCH L 49.4% C 0.141 H 268.3°. Best body text is #FFFFFF at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#405AB1
RGBrgb(64, 90, 177)
HSLhsl(226, 47%, 47%)
HSVhsv(226, 64%, 69%)
CMYKcmyk(63.8%, 49.2%, 0%, 30.6%)
CIE-LABlab(40.53, 18.50, -49.38)
CIE-LCHlch(40.53, 52.73, 290.54°)
OKLaboklab(49.41% -0.0041 -0.1414)
OKLCHoklch(49.41% 0.141 268.3)
XYZxyz(13.7036, 11.5754, 43.0986)
Luminance0.1158 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405AB1 #B19740
analogous
#4092B1 #405AB1 #5F40B1
triadic
#405AB1 #B1405A #5AB140
tetradic
#405AB1 #B14092 #B19740 #40B15F
square
#405AB1 #B14092 #B19740 #40B15F
split-complementary
#405AB1 #B15F40 #92B140
monochromatic
#1F2C57 #304384 #405AB1 #667DC8 #93A3D8

Accessibility & contrast

On white

6.33
#405AB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#405AB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405AB1
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405AB1#FFFFFF#000000##FFFFFF
##405AB11.006.333.326.33
#FFFFFF6.331.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C65B4
Deuteranopia (green-blind)
#135BAF
Tritanopia (blue-blind)
#006E7D
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #405ab1;
/* rgb */ color: rgb(64, 90, 177);
/* oklch */ color: oklch(49.4% 0.141 268.3);
Tailwind
colors: {
  custom: {
    50: '#8088c9',
    500: '#405ab1',
    950: '#000000',
  },
}
SCSS
$custom: #405ab1;
$custom-light: #8088c9;
$custom-dark: #000000;
JSON
{
  "hex": "#405ab1",
  "rgb": {
    "r": 64,
    "g": 90,
    "b": 177
  },
  "hsl": {
    "h": 226.195,
    "s": 46.888,
    "l": 47.255
  },
  "oklch": {
    "l": 0.49409,
    "c": 0.14142,
    "h": 268.3
  },
  "luminance": 0.11577
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #405AB1

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

Preview Lab → · Contrast checker → · Palette generator →

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