#405ABC#405ABC

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

Color values

HEX#405ABC
RGBrgb(64, 90, 188)
HSLhsl(227, 49%, 49%)
HSVhsv(227, 66%, 74%)
CMYKcmyk(66%, 52.1%, 0%, 26.3%)
CIE-LABlab(41.27, 22.43, -54.64)
CIE-LCHlch(41.27, 59.06, 292.31°)
OKLaboklab(50.2% -0.0029 -0.1568)
OKLCHoklch(50.2% 0.157 268.9)
XYZxyz(14.8445, 12.0318, 49.1073)
Luminance0.1203 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405ABC #BCA240
analogous
#4098BC #405ABC #6440BC
triadic
#405ABC #BC405A #5ABC40
tetradic
#405ABC #BC4098 #BCA240 #40BC64
square
#405ABC #BC4098 #BCA240 #40BC64
split-complementary
#405ABC #BC6440 #98BC40
monochromatic
#212E61 #30448E #405ABC #6C80CD #9AA8DD

Accessibility & contrast

On white

6.16
#405ABC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#405ABC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405ABC
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405ABC#FFFFFF#000000##FFFFFF
##405ABC1.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #405abc;
/* rgb */ color: rgb(64, 90, 188);
/* oklch */ color: oklch(50.2% 0.157 268.9);
Tailwind
colors: {
  custom: {
    50: '#8288d1',
    500: '#405abc',
    950: '#000000',
  },
}
SCSS
$custom: #405abc;
$custom-light: #8288d1;
$custom-dark: #000000;
JSON
{
  "hex": "#405abc",
  "rgb": {
    "r": 64,
    "g": 90,
    "b": 188
  },
  "hsl": {
    "h": 227.419,
    "s": 49.206,
    "l": 49.412
  },
  "oklch": {
    "l": 0.502,
    "c": 0.15688,
    "h": 268.9
  },
  "luminance": 0.12033
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #405ABC

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

Preview Lab → · Contrast checker → · Palette generator →

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