#405ABE#405ABE

#405ABE is a mid, vivid blue. Relative luminance 0.121; OKLCH L 50.3% C 0.160 H 269.0°. Best body text is #FFFFFF at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#405ABE
RGBrgb(64, 90, 190)
HSLhsl(228, 50%, 50%)
HSVhsv(228, 66%, 75%)
CMYKcmyk(66.3%, 52.6%, 0%, 25.5%)
CIE-LABlab(41.40, 23.14, -55.59)
CIE-LCHlch(41.40, 60.21, 292.60°)
OKLaboklab(50.35% -0.0027 -0.1596)
OKLCHoklch(50.35% 0.16 269)
XYZxyz(15.0616, 12.1186, 50.2506)
Luminance0.1212 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405ABE #BEA440
analogous
#4099BE #405ABE #6540BE
triadic
#405ABE #BE405A #5ABE40
tetradic
#405ABE #BE4099 #BEA440 #40BE65
square
#405ABE #BE4099 #BEA440 #40BE65
split-complementary
#405ABE #BE6540 #99BE40
monochromatic
#212F62 #314490 #405ABE #6D81CE #9BA9DD

Accessibility & contrast

On white

6.13
#405ABE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#405ABE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405ABE
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405ABE#FFFFFF#000000##FFFFFF
##405ABE1.006.133.426.13
#FFFFFF6.131.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1968C2
Deuteranopia (green-blind)
#005CBC
Tritanopia (blue-blind)
#007283
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #405abe;
/* rgb */ color: rgb(64, 90, 190);
/* oklch */ color: oklch(50.3% 0.160 269.0);
Tailwind
colors: {
  custom: {
    50: '#8388d2',
    500: '#405abe',
    950: '#000000',
  },
}
SCSS
$custom: #405abe;
$custom-light: #8388d2;
$custom-dark: #000000;
JSON
{
  "hex": "#405abe",
  "rgb": {
    "r": 64,
    "g": 90,
    "b": 190
  },
  "hsl": {
    "h": 227.619,
    "s": 49.606,
    "l": 49.804
  },
  "oklch": {
    "l": 0.50347,
    "c": 0.15965,
    "h": 269
  },
  "luminance": 0.1212
}

Semantic roles & 50–950 ramp

primary
#405ABE
secondary
#C9BE90
accent
#BD4FD9
background
#F8F8FD
surface
#F0EFFA
border
#CBCAD3
text
#0C0B14
muted
#7D7C83

Preview Lab

Preview with #405ABE

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

Preview Lab → · Contrast checker → · Palette generator →

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