#405FAF#405FAF

#405FAF is a mid, vivid blue. Relative luminance 0.124; OKLCH L 50.3% C 0.132 H 265.9°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#405FAF
RGBrgb(64, 95, 175)
HSLhsl(223, 46%, 47%)
HSVhsv(223, 63%, 69%)
CMYKcmyk(63.4%, 45.7%, 0%, 31.4%)
CIE-LABlab(41.80, 14.57, -46.17)
CIE-LCHlch(41.80, 48.42, 287.52°)
OKLaboklab(50.33% -0.0094 -0.1319)
OKLCHoklch(50.33% 0.132 265.9)
XYZxyz(13.9418, 12.3683, 42.2017)
Luminance0.1237 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405FAF #AF9040
analogous
#4097AF #405FAF #5840AF
triadic
#405FAF #AF405F #5FAF40
tetradic
#405FAF #AF4097 #AF9040 #40AF58
square
#405FAF #AF4097 #AF9040 #40AF58
split-complementary
#405FAF #AF5840 #97AF40
monochromatic
#1F2E55 #304782 #405FAF #6581C7 #92A5D7

Accessibility & contrast

On white

6.04
#405FAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#405FAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405FAF
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405FAF#FFFFFF#000000##FFFFFF
##405FAF1.006.043.476.04
#FFFFFF6.041.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3968B2
Deuteranopia (green-blind)
#265EAD
Tritanopia (blue-blind)
#00717E
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #405faf;
/* rgb */ color: rgb(64, 95, 175);
/* oklch */ color: oklch(50.3% 0.132 265.9);
Tailwind
colors: {
  custom: {
    50: '#808cc7',
    500: '#405faf',
    950: '#000000',
  },
}
SCSS
$custom: #405faf;
$custom-light: #808cc7;
$custom-dark: #000000;
JSON
{
  "hex": "#405faf",
  "rgb": {
    "r": 64,
    "g": 95,
    "b": 175
  },
  "hsl": {
    "h": 223.243,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.50332,
    "c": 0.13221,
    "h": 265.9
  },
  "luminance": 0.1237
}

Semantic roles & 50–950 ramp

primary
#405FAF
secondary
#C3B288
accent
#B152D6
background
#F8F8FC
surface
#EFF0F8
border
#CACBD1
text
#0B0C13
muted
#7C7D82

Preview Lab

Preview with #405FAF

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

Preview Lab → · Contrast checker → · Palette generator →

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