#405ABB#405ABB

#405ABB is a mid, vivid blue. Relative luminance 0.120; OKLCH L 50.1% C 0.155 H 268.9°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#405ABB
RGBrgb(64, 90, 187)
HSLhsl(227, 49%, 49%)
HSVhsv(227, 66%, 73%)
CMYKcmyk(65.8%, 51.9%, 0%, 26.7%)
CIE-LABlab(41.20, 22.07, -54.17)
CIE-LCHlch(41.20, 58.49, 292.17°)
OKLaboklab(50.13% -0.003 -0.1554)
OKLCHoklch(50.13% 0.155 268.9)
XYZxyz(14.7371, 11.9888, 48.5415)
Luminance0.1199 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405ABB #BBA140
analogous
#4098BB #405ABB #6440BB
triadic
#405ABB #BB405A #5ABB40
tetradic
#405ABB #BB4098 #BBA140 #40BB64
square
#405ABB #BB4098 #BBA140 #40BB64
split-complementary
#405ABB #BB6440 #98BB40
monochromatic
#212E60 #30448D #405ABB #6C80CD #99A7DC

Accessibility & contrast

On white

6.18
#405ABB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#405ABB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405ABB
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405ABB#FFFFFF#000000##FFFFFF
##405ABB1.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F67BE
Deuteranopia (green-blind)
#005CB9
Tritanopia (blue-blind)
#007182
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #405abb;
/* rgb */ color: rgb(64, 90, 187);
/* oklch */ color: oklch(50.1% 0.155 268.9);
Tailwind
colors: {
  custom: {
    50: '#8288d0',
    500: '#405abb',
    950: '#000000',
  },
}
SCSS
$custom: #405abb;
$custom-light: #8288d0;
$custom-dark: #000000;
JSON
{
  "hex": "#405abb",
  "rgb": {
    "r": 64,
    "g": 90,
    "b": 187
  },
  "hsl": {
    "h": 227.317,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.50126,
    "c": 0.15548,
    "h": 268.9
  },
  "luminance": 0.1199
}

Semantic roles & 50–950 ramp

primary
#405ABB
secondary
#C8BC8F
accent
#BC4FD9
background
#F8F8FC
surface
#F0EFF9
border
#CBCAD2
text
#0C0B14
muted
#7D7C82

Preview Lab

Preview with #405ABB

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

Preview Lab → · Contrast checker → · Palette generator →

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