#405BAD#405BAD

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

Color values

HEX#405BAD
RGBrgb(64, 91, 173)
HSLhsl(225, 46%, 46%)
HSVhsv(225, 63%, 68%)
CMYKcmyk(63%, 47.4%, 0%, 32.2%)
CIE-LABlab(40.55, 16.44, -46.98)
CIE-LCHlch(40.55, 49.78, 289.28°)
OKLaboklab(49.34% -0.0056 -0.1343)
OKLCHoklch(49.34% 0.134 267.6)
XYZxyz(13.3957, 11.5881, 41.0579)
Luminance0.1159 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405BAD #AD9240
analogous
#4092AD #405BAD #5C40AD
triadic
#405BAD #AD405B #5BAD40
tetradic
#405BAD #AD4092 #AD9240 #40AD5C
square
#405BAD #AD4092 #AD9240 #40AD5C
split-complementary
#405BAD #AD5C40 #92AD40
monochromatic
#1F2C54 #2F4480 #405BAD #647DC6 #91A2D6

Accessibility & contrast

On white

6.33
#405BAD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#405BAD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405BAD
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405BAD#FFFFFF#000000##FFFFFF
##405BAD1.006.333.326.33
#FFFFFF6.331.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3265B0
Deuteranopia (green-blind)
#1F5BAB
Tritanopia (blue-blind)
#006E7B
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #405bad;
/* rgb */ color: rgb(64, 91, 173);
/* oklch */ color: oklch(49.3% 0.134 267.6);
Tailwind
colors: {
  custom: {
    50: '#7f89c6',
    500: '#405bad',
    950: '#000000',
  },
}
SCSS
$custom: #405bad;
$custom-light: #7f89c6;
$custom-dark: #000000;
JSON
{
  "hex": "#405bad",
  "rgb": {
    "r": 64,
    "g": 91,
    "b": 173
  },
  "hsl": {
    "h": 225.138,
    "s": 45.992,
    "l": 46.471
  },
  "oklch": {
    "l": 0.49342,
    "c": 0.13443,
    "h": 267.6
  },
  "luminance": 0.11589
}

Semantic roles & 50–950 ramp

primary
#405BAD
secondary
#C2B387
accent
#B552D6
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #405BAD

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

Preview Lab → · Contrast checker → · Palette generator →

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