#405AB2#405AB2

#405AB2 is a mid, vivid blue. Relative luminance 0.116; OKLCH L 49.5% C 0.143 H 268.4°. Best body text is #FFFFFF at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#405AB2
RGBrgb(64, 90, 178)
HSLhsl(226, 47%, 47%)
HSVhsv(226, 64%, 70%)
CMYKcmyk(64%, 49.4%, 0%, 30.2%)
CIE-LABlab(40.60, 18.86, -49.86)
CIE-LCHlch(40.60, 53.31, 290.72°)
OKLaboklab(49.48% -0.004 -0.1428)
OKLCHoklch(49.48% 0.143 268.4)
XYZxyz(13.8037, 11.6154, 43.6254)
Luminance0.1162 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405AB2 #B29840
analogous
#4093B2 #405AB2 #5F40B2
triadic
#405AB2 #B2405A #5AB240
tetradic
#405AB2 #B24093 #B29840 #40B25F
square
#405AB2 #B24093 #B29840 #40B25F
split-complementary
#405AB2 #B25F40 #93B240
monochromatic
#202C58 #304385 #405AB2 #677DC8 #94A4D8

Accessibility & contrast

On white

6.32
#405AB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #405AB2
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405AB2#FFFFFF#000000##FFFFFF
##405AB21.006.323.326.32
#FFFFFF6.321.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B65B5
Deuteranopia (green-blind)
#105BB0
Tritanopia (blue-blind)
#006E7D
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #405ab2;
/* rgb */ color: rgb(64, 90, 178);
/* oklch */ color: oklch(49.5% 0.143 268.4);
Tailwind
colors: {
  custom: {
    50: '#8088ca',
    500: '#405ab2',
    950: '#000000',
  },
}
SCSS
$custom: #405ab2;
$custom-light: #8088ca;
$custom-dark: #000000;
JSON
{
  "hex": "#405ab2",
  "rgb": {
    "r": 64,
    "g": 90,
    "b": 178
  },
  "hsl": {
    "h": 226.316,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.49479,
    "c": 0.14283,
    "h": 268.4
  },
  "luminance": 0.11617
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #405AB2

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

Preview Lab → · Contrast checker → · Palette generator →

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