#405CB0#405CB0

#405CB0 is a mid, vivid blue. Relative luminance 0.119; OKLCH L 49.8% C 0.137 H 267.4°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#405CB0
RGBrgb(64, 92, 176)
HSLhsl(225, 47%, 47%)
HSVhsv(225, 64%, 69%)
CMYKcmyk(63.6%, 47.7%, 0%, 31%)
CIE-LABlab(41.02, 16.86, -48.00)
CIE-LCHlch(41.02, 50.88, 289.35°)
OKLaboklab(49.76% -0.0062 -0.1373)
OKLCHoklch(49.76% 0.137 267.4)
XYZxyz(13.7753, 11.8776, 42.6326)
Luminance0.1188 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405CB0 #B09440
analogous
#4094B0 #405CB0 #5C40B0
triadic
#405CB0 #B0405C #5CB040
tetradic
#405CB0 #B04094 #B09440 #40B05C
square
#405CB0 #B04094 #B09440 #40B05C
split-complementary
#405CB0 #B05C40 #94B040
monochromatic
#1F2D56 #304583 #405CB0 #667EC7 #93A4D8

Accessibility & contrast

On white

6.22
#405CB0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#405CB0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405CB0
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405CB0#FFFFFF#000000##FFFFFF
##405CB01.006.223.386.22
#FFFFFF6.221.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3266B3
Deuteranopia (green-blind)
#1D5CAE
Tritanopia (blue-blind)
#006F7D
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #405cb0;
/* rgb */ color: rgb(64, 92, 176);
/* oklch */ color: oklch(49.8% 0.137 267.4);
Tailwind
colors: {
  custom: {
    50: '#8089c8',
    500: '#405cb0',
    950: '#000000',
  },
}
SCSS
$custom: #405cb0;
$custom-light: #8089c8;
$custom-dark: #000000;
JSON
{
  "hex": "#405cb0",
  "rgb": {
    "r": 64,
    "g": 92,
    "b": 176
  },
  "hsl": {
    "h": 225,
    "s": 46.667,
    "l": 47.059
  },
  "oklch": {
    "l": 0.4976,
    "c": 0.13743,
    "h": 267.4
  },
  "luminance": 0.11879
}

Semantic roles & 50–950 ramp

primary
#405CB0
secondary
#C3B489
accent
#B551D6
background
#F8F8FC
surface
#EFF0F8
border
#CACBD1
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #405CB0

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

Preview Lab → · Contrast checker → · Palette generator →

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