#405AB4#405AB4

#405AB4 is a mid, vivid blue. Relative luminance 0.117; OKLCH L 49.6% C 0.146 H 268.5°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#405AB4
RGBrgb(64, 90, 180)
HSLhsl(227, 48%, 48%)
HSVhsv(227, 64%, 71%)
CMYKcmyk(64.4%, 50%, 0%, 29.4%)
CIE-LABlab(40.73, 19.57, -50.82)
CIE-LCHlch(40.73, 54.46, 291.06°)
OKLaboklab(49.62% -0.0037 -0.1456)
OKLCHoklch(49.62% 0.146 268.5)
XYZxyz(14.0059, 11.6963, 44.6907)
Luminance0.1170 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405AB4 #B49A40
analogous
#4094B4 #405AB4 #6040B4
triadic
#405AB4 #B4405A #5AB440
tetradic
#405AB4 #B44094 #B49A40 #40B460
square
#405AB4 #B44094 #B49A40 #40B460
split-complementary
#405AB4 #B46040 #94B440
monochromatic
#202D5A #304387 #405AB4 #687EC9 #95A4D9

Accessibility & contrast

On white

6.29
#405AB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#405AB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405AB4
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405AB4#FFFFFF#000000##FFFFFF
##405AB41.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2966B7
Deuteranopia (green-blind)
#095BB2
Tritanopia (blue-blind)
#006F7E
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #405ab4;
/* rgb */ color: rgb(64, 90, 180);
/* oklch */ color: oklch(49.6% 0.146 268.5);
Tailwind
colors: {
  custom: {
    50: '#8188cb',
    500: '#405ab4',
    950: '#000000',
  },
}
SCSS
$custom: #405ab4;
$custom-light: #8188cb;
$custom-dark: #000000;
JSON
{
  "hex": "#405ab4",
  "rgb": {
    "r": 64,
    "g": 90,
    "b": 180
  },
  "hsl": {
    "h": 226.552,
    "s": 47.541,
    "l": 47.843
  },
  "oklch": {
    "l": 0.49621,
    "c": 0.14567,
    "h": 268.5
  },
  "luminance": 0.11698
}

Semantic roles & 50–950 ramp

primary
#405AB4
secondary
#C5B88B
accent
#B951D7
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #405AB4

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

Preview Lab → · Contrast checker → · Palette generator →

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