#405BBC#405BBC

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

Color values

HEX#405BBC
RGBrgb(64, 91, 188)
HSLhsl(227, 49%, 49%)
HSVhsv(227, 66%, 74%)
CMYKcmyk(66%, 51.6%, 0%, 26.3%)
CIE-LABlab(41.53, 21.78, -54.21)
CIE-LCHlch(41.53, 58.42, 291.89°)
OKLaboklab(50.4% -0.0038 -0.1556)
OKLCHoklch(50.4% 0.156 268.6)
XYZxyz(14.9294, 12.2016, 49.1356)
Luminance0.1220 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405BBC #BCA140
analogous
#4099BC #405BBC #6340BC
triadic
#405BBC #BC405B #5BBC40
tetradic
#405BBC #BC4099 #BCA140 #40BC63
square
#405BBC #BC4099 #BCA140 #40BC63
split-complementary
#405BBC #BC6340 #99BC40
monochromatic
#212F61 #30458E #405BBC #6C81CD #9AA8DD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##405BBC#FFFFFF#000000##FFFFFF
##405BBC1.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)
#2168BF
Deuteranopia (green-blind)
#005DBA
Tritanopia (blue-blind)
#007283
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #405bbc;
/* rgb */ color: rgb(64, 91, 188);
/* oklch */ color: oklch(50.4% 0.156 268.6);
Tailwind
colors: {
  custom: {
    50: '#8289d1',
    500: '#405bbc',
    950: '#000000',
  },
}
SCSS
$custom: #405bbc;
$custom-light: #8289d1;
$custom-dark: #000000;
JSON
{
  "hex": "#405bbc",
  "rgb": {
    "r": 64,
    "g": 91,
    "b": 188
  },
  "hsl": {
    "h": 226.935,
    "s": 49.206,
    "l": 49.412
  },
  "oklch": {
    "l": 0.50402,
    "c": 0.15561,
    "h": 268.6
  },
  "luminance": 0.12203
}

Semantic roles & 50–950 ramp

primary
#405BBC
secondary
#C9BC8F
accent
#BB4FD9
background
#F8F8FC
surface
#F0EFF9
border
#CBCAD2
text
#0C0B14
muted
#7D7C82

Preview Lab

Preview with #405BBC

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

Preview Lab → · Contrast checker → · Palette generator →

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