#405ABA#405ABA

#405ABA is a mid, vivid blue. Relative luminance 0.119; OKLCH L 50.1% C 0.154 H 268.8°. Best body text is #FFFFFF at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#405ABA
RGBrgb(64, 90, 186)
HSLhsl(227, 49%, 49%)
HSVhsv(227, 66%, 73%)
CMYKcmyk(65.6%, 51.6%, 0%, 27.1%)
CIE-LABlab(41.13, 21.71, -53.69)
CIE-LCHlch(41.13, 57.92, 292.02°)
OKLaboklab(50.05% -0.0031 -0.1541)
OKLCHoklch(50.05% 0.154 268.8)
XYZxyz(14.6304, 11.9461, 47.9797)
Luminance0.1195 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405ABA #BAA040
analogous
#4097BA #405ABA #6340BA
triadic
#405ABA #BA405A #5ABA40
tetradic
#405ABA #BA4097 #BAA040 #40BA63
square
#405ABA #BA4097 #BAA040 #40BA63
split-complementary
#405ABA #BA6340 #97BA40
monochromatic
#212E5F #30448C #405ABA #6B80CC #99A7DC

Accessibility & contrast

On white

6.20
#405ABA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#405ABA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405ABA
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405ABA#FFFFFF#000000##FFFFFF
##405ABA1.006.203.396.20
#FFFFFF6.201.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2167BD
Deuteranopia (green-blind)
#005CB8
Tritanopia (blue-blind)
#007181
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #405aba;
/* rgb */ color: rgb(64, 90, 186);
/* oklch */ color: oklch(50.1% 0.154 268.8);
Tailwind
colors: {
  custom: {
    50: '#8288cf',
    500: '#405aba',
    950: '#000000',
  },
}
SCSS
$custom: #405aba;
$custom-light: #8288cf;
$custom-dark: #000000;
JSON
{
  "hex": "#405aba",
  "rgb": {
    "r": 64,
    "g": 90,
    "b": 186
  },
  "hsl": {
    "h": 227.213,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.50053,
    "c": 0.15409,
    "h": 268.8
  },
  "luminance": 0.11947
}

Semantic roles & 50–950 ramp

primary
#405ABA
secondary
#C8BB8E
accent
#BB4FD8
background
#F8F8FC
surface
#F0EFF9
border
#CBCAD2
text
#0C0B14
muted
#7D7C82

Preview Lab

Preview with #405ABA

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

Preview Lab → · Contrast checker → · Palette generator →

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