#405CB9#405CB9

#405CB9 is a mid, vivid blue. Relative luminance 0.122; OKLCH L 50.4% C 0.150 H 268.1°. Best body text is #FFFFFF at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#405CB9
RGBrgb(64, 92, 185)
HSLhsl(226, 49%, 49%)
HSVhsv(226, 65%, 73%)
CMYKcmyk(65.4%, 50.3%, 0%, 27.5%)
CIE-LABlab(41.60, 20.07, -52.34)
CIE-LCHlch(41.60, 56.06, 290.98°)
OKLaboklab(50.39% -0.0051 -0.1501)
OKLCHoklch(50.39% 0.15 268.1)
XYZxyz(14.6955, 12.2457, 47.4788)
Luminance0.1225 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405CB9 #B99D40
analogous
#4099B9 #405CB9 #6140B9
triadic
#405CB9 #B9405C #5CB940
tetradic
#405CB9 #B94099 #B99D40 #40B961
square
#405CB9 #B94099 #B99D40 #40B961
split-complementary
#405CB9 #B96140 #99B940
monochromatic
#212F5E #30458C #405CB9 #6B81CC #98A8DB

Accessibility & contrast

On white

6.09
#405CB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#405CB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405CB9
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405CB9#FFFFFF#000000##FFFFFF
##405CB91.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2868BC
Deuteranopia (green-blind)
#015DB7
Tritanopia (blue-blind)
#007282
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #405cb9;
/* rgb */ color: rgb(64, 92, 185);
/* oklch */ color: oklch(50.4% 0.150 268.1);
Tailwind
colors: {
  custom: {
    50: '#8289cf',
    500: '#405cb9',
    950: '#000000',
  },
}
SCSS
$custom: #405cb9;
$custom-light: #8289cf;
$custom-dark: #000000;
JSON
{
  "hex": "#405cb9",
  "rgb": {
    "r": 64,
    "g": 92,
    "b": 185
  },
  "hsl": {
    "h": 226.116,
    "s": 48.594,
    "l": 48.824
  },
  "oklch": {
    "l": 0.50391,
    "c": 0.15015,
    "h": 268.1
  },
  "luminance": 0.12247
}

Semantic roles & 50–950 ramp

primary
#405CB9
secondary
#C7BA8E
accent
#B950D8
background
#F8F8FC
surface
#F0F0F9
border
#CBCBD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #405CB9

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

Preview Lab → · Contrast checker → · Palette generator →

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