#405CAF#405CAF

#405CAF is a mid, vivid blue. Relative luminance 0.118; OKLCH L 49.7% C 0.136 H 267.3°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#405CAF
RGBrgb(64, 92, 175)
HSLhsl(225, 46%, 47%)
HSVhsv(225, 63%, 69%)
CMYKcmyk(63.4%, 47.4%, 0%, 31.4%)
CIE-LABlab(40.96, 16.50, -47.52)
CIE-LCHlch(40.96, 50.30, 289.15°)
OKLaboklab(49.69% -0.0064 -0.1359)
OKLCHoklch(49.69% 0.136 267.3)
XYZxyz(13.6767, 11.8382, 42.1134)
Luminance0.1184 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405CAF #AF9340
analogous
#4094AF #405CAF #5C40AF
triadic
#405CAF #AF405C #5CAF40
tetradic
#405CAF #AF4094 #AF9340 #40AF5C
square
#405CAF #AF4094 #AF9340 #40AF5C
split-complementary
#405CAF #AF5C40 #94AF40
monochromatic
#1F2D55 #304482 #405CAF #657EC7 #92A4D7

Accessibility & contrast

On white

6.24
#405CAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#405CAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405CAF
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405CAF#FFFFFF#000000##FFFFFF
##405CAF1.006.243.376.24
#FFFFFF6.241.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3366B2
Deuteranopia (green-blind)
#1E5CAD
Tritanopia (blue-blind)
#006F7D
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #405caf;
/* rgb */ color: rgb(64, 92, 175);
/* oklch */ color: oklch(49.7% 0.136 267.3);
Tailwind
colors: {
  custom: {
    50: '#8089c7',
    500: '#405caf',
    950: '#000000',
  },
}
SCSS
$custom: #405caf;
$custom-light: #8089c7;
$custom-dark: #000000;
JSON
{
  "hex": "#405caf",
  "rgb": {
    "r": 64,
    "g": 92,
    "b": 175
  },
  "hsl": {
    "h": 224.865,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.49691,
    "c": 0.13601,
    "h": 267.3
  },
  "luminance": 0.11839
}

Semantic roles & 50–950 ramp

primary
#405CAF
secondary
#C3B488
accent
#B552D6
background
#F8F8FC
surface
#EFF0F8
border
#CACBD1
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #405CAF

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

Preview Lab → · Contrast checker → · Palette generator →

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