#405FAA#405FAA

#405FAA is a mid, vivid blue. Relative luminance 0.122; OKLCH L 50.0% C 0.125 H 265.3°. Best body text is #FFFFFF at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#405FAA
RGBrgb(64, 95, 170)
HSLhsl(222, 45%, 46%)
HSVhsv(222, 62%, 67%)
CMYKcmyk(62.4%, 44.1%, 0%, 33.3%)
CIE-LABlab(41.49, 12.80, -43.71)
CIE-LCHlch(41.49, 45.55, 286.32°)
OKLaboklab(50% -0.0103 -0.1246)
OKLCHoklch(50% 0.125 265.3)
XYZxyz(13.4598, 12.1755, 39.6632)
Luminance0.1218 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405FAA #AA8B40
analogous
#4094AA #405FAA #5640AA
triadic
#405FAA #AA405F #5FAA40
tetradic
#405FAA #AA4094 #AA8B40 #40AA56
square
#405FAA #AA4094 #AA8B40 #40AA56
split-complementary
#405FAA #AA5640 #94AA40
monochromatic
#1F2D51 #2F467E #405FAA #637FC4 #8FA4D5

Accessibility & contrast

On white

6.11
#405FAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#405FAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405FAA
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405FAA#FFFFFF#000000##FFFFFF
##405FAA1.006.113.446.11
#FFFFFF6.111.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C67AD
Deuteranopia (green-blind)
#2C5DA8
Tritanopia (blue-blind)
#00707C
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #405faa;
/* rgb */ color: rgb(64, 95, 170);
/* oklch */ color: oklch(50.0% 0.125 265.3);
Tailwind
colors: {
  custom: {
    50: '#7f8cc4',
    500: '#405faa',
    950: '#000000',
  },
}
SCSS
$custom: #405faa;
$custom-light: #7f8cc4;
$custom-dark: #000000;
JSON
{
  "hex": "#405faa",
  "rgb": {
    "r": 64,
    "g": 95,
    "b": 170
  },
  "hsl": {
    "h": 222.453,
    "s": 45.299,
    "l": 45.882
  },
  "oklch": {
    "l": 0.50003,
    "c": 0.12506,
    "h": 265.3
  },
  "luminance": 0.12177
}

Semantic roles & 50–950 ramp

primary
#405FAA
secondary
#C0AF86
accent
#AF53D5
background
#F8F8FC
surface
#EFF0F8
border
#CACBD1
text
#0B0C12
muted
#7C7D81

Preview Lab

Preview with #405FAA

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

Preview Lab → · Contrast checker → · Palette generator →

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