#405AAF#405AAF

#405AAF is a mid, vivid blue. Relative luminance 0.115; OKLCH L 49.3% C 0.139 H 268.2°. Best body text is #FFFFFF at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#405AAF
RGBrgb(64, 90, 175)
HSLhsl(226, 46%, 47%)
HSVhsv(226, 63%, 69%)
CMYKcmyk(63.4%, 48.6%, 0%, 31.4%)
CIE-LABlab(40.40, 17.79, -48.41)
CIE-LCHlch(40.40, 51.57, 290.18°)
OKLaboklab(49.27% -0.0043 -0.1385)
OKLCHoklch(49.27% 0.139 268.2)
XYZxyz(13.5057, 11.4963, 42.0564)
Luminance0.1150 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405AAF #AF9540
analogous
#4092AF #405AAF #5E40AF
triadic
#405AAF #AF405A #5AAF40
tetradic
#405AAF #AF4092 #AF9540 #40AF5E
square
#405AAF #AF4092 #AF9540 #40AF5E
split-complementary
#405AAF #AF5E40 #92AF40
monochromatic
#1F2C55 #304382 #405AAF #657CC7 #92A2D7

Accessibility & contrast

On white

6.36
#405AAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#405AAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405AAF
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405AAF#FFFFFF#000000##FFFFFF
##405AAF1.006.363.306.36
#FFFFFF6.361.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E65B2
Deuteranopia (green-blind)
#185BAD
Tritanopia (blue-blind)
#006E7C
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #405aaf;
/* rgb */ color: rgb(64, 90, 175);
/* oklch */ color: oklch(49.3% 0.139 268.2);
Tailwind
colors: {
  custom: {
    50: '#8088c7',
    500: '#405aaf',
    950: '#000000',
  },
}
SCSS
$custom: #405aaf;
$custom-light: #8088c7;
$custom-dark: #000000;
JSON
{
  "hex": "#405aaf",
  "rgb": {
    "r": 64,
    "g": 90,
    "b": 175
  },
  "hsl": {
    "h": 225.946,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.49269,
    "c": 0.13857,
    "h": 268.2
  },
  "luminance": 0.11497
}

Semantic roles & 50–950 ramp

primary
#405AAF
secondary
#C3B588
accent
#B752D6
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #405AAF

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

Preview Lab → · Contrast checker → · Palette generator →

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