#405AB3#405AB3

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

Color values

HEX#405AB3
RGBrgb(64, 90, 179)
HSLhsl(226, 47%, 48%)
HSVhsv(226, 64%, 70%)
CMYKcmyk(64.2%, 49.7%, 0%, 29.8%)
CIE-LABlab(40.66, 19.22, -50.34)
CIE-LCHlch(40.66, 53.89, 290.89°)
OKLaboklab(49.55% -0.0038 -0.1442)
OKLCHoklch(49.55% 0.144 268.5)
XYZxyz(13.9044, 11.6557, 44.1561)
Luminance0.1166 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405AB3 #B39940
analogous
#4093B3 #405AB3 #6040B3
triadic
#405AB3 #B3405A #5AB340
tetradic
#405AB3 #B34093 #B39940 #40B360
square
#405AB3 #B34093 #B39940 #40B360
split-complementary
#405AB3 #B36040 #93B340
monochromatic
#202D59 #304386 #405AB3 #677DC9 #94A4D9

Accessibility & contrast

On white

6.30
#405AB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#405AB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405AB3
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405AB3#FFFFFF#000000##FFFFFF
##405AB31.006.303.336.30
#FFFFFF6.301.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A65B6
Deuteranopia (green-blind)
#0D5BB1
Tritanopia (blue-blind)
#006F7E
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #405ab3;
/* rgb */ color: rgb(64, 90, 179);
/* oklch */ color: oklch(49.5% 0.144 268.5);
Tailwind
colors: {
  custom: {
    50: '#8088ca',
    500: '#405ab3',
    950: '#000000',
  },
}
SCSS
$custom: #405ab3;
$custom-light: #8088ca;
$custom-dark: #000000;
JSON
{
  "hex": "#405ab3",
  "rgb": {
    "r": 64,
    "g": 90,
    "b": 179
  },
  "hsl": {
    "h": 226.435,
    "s": 47.325,
    "l": 47.647
  },
  "oklch": {
    "l": 0.4955,
    "c": 0.14425,
    "h": 268.5
  },
  "luminance": 0.11657
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #405AB3

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

Preview Lab → · Contrast checker → · Palette generator →

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