#405CB7#405CB7

#405CB7 is a mid, vivid blue. Relative luminance 0.122; OKLCH L 50.2% C 0.147 H 267.9°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#405CB7
RGBrgb(64, 92, 183)
HSLhsl(226, 48%, 48%)
HSVhsv(226, 65%, 72%)
CMYKcmyk(65%, 49.7%, 0%, 28.2%)
CIE-LABlab(41.47, 19.35, -51.39)
CIE-LCHlch(41.47, 54.91, 290.64°)
OKLaboklab(50.25% -0.0053 -0.1472)
OKLCHoklch(50.25% 0.147 267.9)
XYZxyz(14.4858, 12.1619, 46.3746)
Luminance0.1216 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405CB7 #B79B40
analogous
#4097B7 #405CB7 #5F40B7
triadic
#405CB7 #B7405C #5CB740
tetradic
#405CB7 #B74097 #B79B40 #40B75F
square
#405CB7 #B74097 #B79B40 #40B75F
split-complementary
#405CB7 #B75F40 #97B740
monochromatic
#202E5C #30458A #405CB7 #6980CB #97A7DB

Accessibility & contrast

On white

6.12
#405CB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#405CB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405CB7
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405CB7#FFFFFF#000000##FFFFFF
##405CB71.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A67BA
Deuteranopia (green-blind)
#0A5DB5
Tritanopia (blue-blind)
#007181
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #405cb7;
/* rgb */ color: rgb(64, 92, 183);
/* oklch */ color: oklch(50.2% 0.147 267.9);
Tailwind
colors: {
  custom: {
    50: '#8189cd',
    500: '#405cb7',
    950: '#000000',
  },
}
SCSS
$custom: #405cb7;
$custom-light: #8189cd;
$custom-dark: #000000;
JSON
{
  "hex": "#405cb7",
  "rgb": {
    "r": 64,
    "g": 92,
    "b": 183
  },
  "hsl": {
    "h": 225.882,
    "s": 48.178,
    "l": 48.431
  },
  "oklch": {
    "l": 0.50248,
    "c": 0.14734,
    "h": 267.9
  },
  "luminance": 0.12163
}

Semantic roles & 50–950 ramp

primary
#405CB7
secondary
#C6B98D
accent
#B850D8
background
#F8F8FC
surface
#F0F0F9
border
#CBCBD2
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #405CB7

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

Preview Lab → · Contrast checker → · Palette generator →

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