#405ABF#405ABF

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

Color values

HEX#405ABF
RGBrgb(64, 90, 191)
HSLhsl(228, 50%, 50%)
HSVhsv(228, 66%, 75%)
CMYKcmyk(66.5%, 52.9%, 0%, 25.1%)
CIE-LABlab(41.47, 23.50, -56.06)
CIE-LCHlch(41.47, 60.78, 292.74°)
OKLaboklab(50.42% -0.0027 -0.161)
OKLCHoklch(50.42% 0.161 269)
XYZxyz(15.1713, 12.1625, 50.8282)
Luminance0.1216 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405ABF #BFA540
analogous
#4099BF #405ABF #6640BF
triadic
#405ABF #BF405A #5ABF40
tetradic
#405ABF #BF4099 #BFA540 #40BF66
square
#405ABF #BF4099 #BFA540 #40BF66
split-complementary
#405ABF #BF6640 #99BF40
monochromatic
#212F63 #314491 #405ABF #6E82CE #9CA9DE

Accessibility & contrast

On white

6.12
#405ABF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#405ABF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405ABF
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405ABF#FFFFFF#000000##FFFFFF
##405ABF1.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1768C3
Deuteranopia (green-blind)
#005CBD
Tritanopia (blue-blind)
#007284
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #405abf;
/* rgb */ color: rgb(64, 90, 191);
/* oklch */ color: oklch(50.4% 0.161 269.0);
Tailwind
colors: {
  custom: {
    50: '#8388d3',
    500: '#405abf',
    950: '#000000',
  },
}
SCSS
$custom: #405abf;
$custom-light: #8388d3;
$custom-dark: #000000;
JSON
{
  "hex": "#405abf",
  "rgb": {
    "r": 64,
    "g": 90,
    "b": 191
  },
  "hsl": {
    "h": 227.717,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.50421,
    "c": 0.16103,
    "h": 269
  },
  "luminance": 0.12164
}

Semantic roles & 50–950 ramp

primary
#405ABF
secondary
#CABE91
accent
#BD4ED9
background
#F8F8FD
surface
#F0EFFA
border
#CBCAD3
text
#0C0B14
muted
#7D7C83

Preview Lab

Preview with #405ABF

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

Preview Lab → · Contrast checker → · Palette generator →

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