#405CB8#405CB8

#405CB8 is a mid, vivid blue. Relative luminance 0.122; OKLCH L 50.3% C 0.149 H 268.0°. Best body text is #FFFFFF at 6.10:1 contrast (WCAG AA passes).

Color values

HEX#405CB8
RGBrgb(64, 92, 184)
HSLhsl(226, 48%, 49%)
HSVhsv(226, 65%, 72%)
CMYKcmyk(65.2%, 50%, 0%, 27.8%)
CIE-LABlab(41.54, 19.71, -51.87)
CIE-LCHlch(41.54, 55.49, 290.81°)
OKLaboklab(50.32% -0.0052 -0.1486)
OKLCHoklch(50.32% 0.149 268)
XYZxyz(14.5903, 12.2036, 46.9247)
Luminance0.1221 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405CB8 #B89C40
analogous
#4098B8 #405CB8 #6040B8
triadic
#405CB8 #B8405C #5CB840
tetradic
#405CB8 #B84098 #B89C40 #40B860
square
#405CB8 #B84098 #B89C40 #40B860
split-complementary
#405CB8 #B86040 #98B840
monochromatic
#202F5D #30458B #405CB8 #6A81CB #97A7DB

Accessibility & contrast

On white

6.10
#405CB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#405CB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405CB8
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405CB8#FFFFFF#000000##FFFFFF
##405CB81.006.103.446.10
#FFFFFF6.101.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2968BB
Deuteranopia (green-blind)
#065DB6
Tritanopia (blue-blind)
#007181
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #405cb8;
/* rgb */ color: rgb(64, 92, 184);
/* oklch */ color: oklch(50.3% 0.149 268.0);
Tailwind
colors: {
  custom: {
    50: '#8189ce',
    500: '#405cb8',
    950: '#000000',
  },
}
SCSS
$custom: #405cb8;
$custom-light: #8189ce;
$custom-dark: #000000;
JSON
{
  "hex": "#405cb8",
  "rgb": {
    "r": 64,
    "g": 92,
    "b": 184
  },
  "hsl": {
    "h": 226,
    "s": 48.387,
    "l": 48.627
  },
  "oklch": {
    "l": 0.50319,
    "c": 0.14874,
    "h": 268
  },
  "luminance": 0.12205
}

Semantic roles & 50–950 ramp

primary
#405CB8
secondary
#C7B98D
accent
#B850D8
background
#F8F8FC
surface
#F0F0F9
border
#CBCBD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #405CB8

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

Preview Lab → · Contrast checker → · Palette generator →

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