#405BAF#405BAF

#405BAF is a mid, vivid blue. Relative luminance 0.117; OKLCH L 49.5% C 0.137 H 267.8°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#405BAF
RGBrgb(64, 91, 175)
HSLhsl(225, 46%, 47%)
HSVhsv(225, 63%, 69%)
CMYKcmyk(63.4%, 48%, 0%, 31.4%)
CIE-LABlab(40.68, 17.15, -47.96)
CIE-LCHlch(40.68, 50.93, 289.67°)
OKLaboklab(49.48% -0.0053 -0.1372)
OKLCHoklch(49.48% 0.137 267.8)
XYZxyz(13.5907, 11.6661, 42.0847)
Luminance0.1167 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405BAF #AF9440
analogous
#4093AF #405BAF #5C40AF
triadic
#405BAF #AF405B #5BAF40
tetradic
#405BAF #AF4093 #AF9440 #40AF5C
square
#405BAF #AF4093 #AF9440 #40AF5C
split-complementary
#405BAF #AF5C40 #93AF40
monochromatic
#1F2C55 #304482 #405BAF #657DC7 #92A3D7

Accessibility & contrast

On white

6.30
#405BAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#405BAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405BAF
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405BAF#FFFFFF#000000##FFFFFF
##405BAF1.006.303.336.30
#FFFFFF6.301.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3065B2
Deuteranopia (green-blind)
#1B5BAD
Tritanopia (blue-blind)
#006E7C
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #405baf;
/* rgb */ color: rgb(64, 91, 175);
/* oklch */ color: oklch(49.5% 0.137 267.8);
Tailwind
colors: {
  custom: {
    50: '#8089c7',
    500: '#405baf',
    950: '#000000',
  },
}
SCSS
$custom: #405baf;
$custom-light: #8089c7;
$custom-dark: #000000;
JSON
{
  "hex": "#405baf",
  "rgb": {
    "r": 64,
    "g": 91,
    "b": 175
  },
  "hsl": {
    "h": 225.405,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.4948,
    "c": 0.13728,
    "h": 267.8
  },
  "luminance": 0.11667
}

Semantic roles & 50–950 ramp

primary
#405BAF
secondary
#C3B488
accent
#B652D6
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #405BAF

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

Preview Lab → · Contrast checker → · Palette generator →

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