#405A9B#405A9B

#405A9B is a mid, moderate blue. Relative luminance 0.108; OKLCH L 47.9% C 0.110 H 266.0°. Best body text is #FFFFFF at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#405A9B
RGBrgb(64, 90, 155)
HSLhsl(223, 42%, 43%)
HSVhsv(223, 59%, 61%)
CMYKcmyk(58.7%, 41.9%, 0%, 39.2%)
CIE-LABlab(39.19, 10.74, -38.47)
CIE-LCHlch(39.19, 39.94, 285.61°)
OKLaboklab(47.94% -0.0077 -0.1093)
OKLCHoklch(47.94% 0.11 266)
XYZxyz(11.6849, 10.7679, 32.4667)
Luminance0.1077 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405A9B #9B8140
analogous
#40879B #405A9B #53409B
triadic
#405A9B #9B405A #5A9B40
tetradic
#405A9B #9B4087 #9B8140 #409B53
square
#405A9B #9B4087 #9B8140 #409B53
split-complementary
#405A9B #9B5340 #879B40
monochromatic
#1C2844 #2E4170 #405A9B #5C78BC #889CCE

Accessibility & contrast

On white

6.66
#405A9B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#405A9B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405A9B
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405A9B#FFFFFF#000000##FFFFFF
##405A9B1.006.663.156.66
#FFFFFF6.661.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E619E
Deuteranopia (green-blind)
#32589A
Tritanopia (blue-blind)
#006873
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #405a9b;
/* rgb */ color: rgb(64, 90, 155);
/* oklch */ color: oklch(47.9% 0.110 266.0);
Tailwind
colors: {
  custom: {
    50: '#7c88b9',
    500: '#405a9b',
    950: '#000000',
  },
}
SCSS
$custom: #405a9b;
$custom-light: #7c88b9;
$custom-dark: #000000;
JSON
{
  "hex": "#405a9b",
  "rgb": {
    "r": 64,
    "g": 90,
    "b": 155
  },
  "hsl": {
    "h": 222.857,
    "s": 41.553,
    "l": 42.941
  },
  "oklch": {
    "l": 0.47943,
    "c": 0.10958,
    "h": 266
  },
  "luminance": 0.10769
}

Semantic roles & 50–950 ramp

primary
#405A9B
secondary
#B8A87E
accent
#AE56D1
background
#F7F8FB
surface
#EEEFF6
border
#C9CAD0
text
#0A0B11
muted
#7C7C80

Preview Lab

Preview with #405A9B

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

Preview Lab → · Contrast checker → · Palette generator →

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