#405CB1#405CB1

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

Color values

HEX#405CB1
RGBrgb(64, 92, 177)
HSLhsl(225, 47%, 47%)
HSVhsv(225, 64%, 69%)
CMYKcmyk(63.8%, 48%, 0%, 30.6%)
CIE-LABlab(41.08, 17.21, -48.49)
CIE-LCHlch(41.08, 51.45, 289.54°)
OKLaboklab(49.83% -0.0061 -0.1387)
OKLCHoklch(49.83% 0.139 267.5)
XYZxyz(13.8746, 11.9174, 43.1556)
Luminance0.1192 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405CB1 #B19540
analogous
#4094B1 #405CB1 #5D40B1
triadic
#405CB1 #B1405C #5CB140
tetradic
#405CB1 #B14094 #B19540 #40B15D
square
#405CB1 #B14094 #B19540 #40B15D
split-complementary
#405CB1 #B15D40 #94B140
monochromatic
#1F2D57 #304584 #405CB1 #667FC8 #93A4D8

Accessibility & contrast

On white

6.21
#405CB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #405CB1
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405CB1#FFFFFF#000000##FFFFFF
##405CB11.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3166B4
Deuteranopia (green-blind)
#1B5CAF
Tritanopia (blue-blind)
#00707E
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #405cb1;
/* rgb */ color: rgb(64, 92, 177);
/* oklch */ color: oklch(49.8% 0.139 267.5);
Tailwind
colors: {
  custom: {
    50: '#8089c9',
    500: '#405cb1',
    950: '#000000',
  },
}
SCSS
$custom: #405cb1;
$custom-light: #8089c9;
$custom-dark: #000000;
JSON
{
  "hex": "#405cb1",
  "rgb": {
    "r": 64,
    "g": 92,
    "b": 177
  },
  "hsl": {
    "h": 225.133,
    "s": 46.888,
    "l": 47.255
  },
  "oklch": {
    "l": 0.49829,
    "c": 0.13885,
    "h": 267.5
  },
  "luminance": 0.11919
}

Semantic roles & 50–950 ramp

primary
#405CB1
secondary
#C3B589
accent
#B651D7
background
#F8F8FC
surface
#EFF0F8
border
#CACBD1
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #405CB1

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

Preview Lab → · Contrast checker → · Palette generator →

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