#405BAC#405BAC

#405BAC is a mid, vivid blue. Relative luminance 0.116; OKLCH L 49.3% C 0.133 H 267.5°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#405BAC
RGBrgb(64, 91, 172)
HSLhsl(225, 46%, 46%)
HSVhsv(225, 63%, 67%)
CMYKcmyk(62.8%, 47.1%, 0%, 32.5%)
CIE-LABlab(40.49, 16.08, -46.49)
CIE-LCHlch(40.49, 49.20, 289.08°)
OKLaboklab(49.27% -0.0058 -0.1329)
OKLCHoklch(49.27% 0.133 267.5)
XYZxyz(13.2993, 11.5496, 40.5502)
Luminance0.1155 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405BAC #AC9140
analogous
#4091AC #405BAC #5B40AC
triadic
#405BAC #AC405B #5BAC40
tetradic
#405BAC #AC4091 #AC9140 #40AC5B
square
#405BAC #AC4091 #AC9140 #40AC5B
split-complementary
#405BAC #AC5B40 #91AC40
monochromatic
#1F2C53 #2F437F #405BAC #647CC5 #91A2D6

Accessibility & contrast

On white

6.34
#405BAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#405BAC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405BAC
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405BAC#FFFFFF#000000##FFFFFF
##405BAC1.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3365AF
Deuteranopia (green-blind)
#215BAA
Tritanopia (blue-blind)
#006D7B
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #405bac;
/* rgb */ color: rgb(64, 91, 172);
/* oklch */ color: oklch(49.3% 0.133 267.5);
Tailwind
colors: {
  custom: {
    50: '#7f89c5',
    500: '#405bac',
    950: '#000000',
  },
}
SCSS
$custom: #405bac;
$custom-light: #7f89c5;
$custom-dark: #000000;
JSON
{
  "hex": "#405bac",
  "rgb": {
    "r": 64,
    "g": 91,
    "b": 172
  },
  "hsl": {
    "h": 225,
    "s": 45.763,
    "l": 46.275
  },
  "oklch": {
    "l": 0.49274,
    "c": 0.133,
    "h": 267.5
  },
  "luminance": 0.11551
}

Semantic roles & 50–950 ramp

primary
#405BAC
secondary
#C1B287
accent
#B552D5
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #405BAC

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

Preview Lab → · Contrast checker → · Palette generator →

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