#405BBA#405BBA

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

Color values

HEX#405BBA
RGBrgb(64, 91, 186)
HSLhsl(227, 49%, 49%)
HSVhsv(227, 66%, 73%)
CMYKcmyk(65.6%, 51.1%, 0%, 27.1%)
CIE-LABlab(41.40, 21.07, -53.26)
CIE-LCHlch(41.40, 57.27, 291.58°)
OKLaboklab(50.26% -0.004 -0.1528)
OKLCHoklch(50.26% 0.153 268.5)
XYZxyz(14.7153, 12.1160, 48.0080)
Luminance0.1212 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405BBA #BA9F40
analogous
#4098BA #405BBA #6240BA
triadic
#405BBA #BA405B #5BBA40
tetradic
#405BBA #BA4098 #BA9F40 #40BA62
square
#405BBA #BA4098 #BA9F40 #40BA62
split-complementary
#405BBA #BA6240 #98BA40
monochromatic
#212E5F #30458C #405BBA #6B81CC #99A7DC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##405BBA#FFFFFF#000000##FFFFFF
##405BBA1.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)
#2467BD
Deuteranopia (green-blind)
#005CB8
Tritanopia (blue-blind)
#007182
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #405bba;
/* rgb */ color: rgb(64, 91, 186);
/* oklch */ color: oklch(50.3% 0.153 268.5);
Tailwind
colors: {
  custom: {
    50: '#8289cf',
    500: '#405bba',
    950: '#000000',
  },
}
SCSS
$custom: #405bba;
$custom-light: #8289cf;
$custom-dark: #000000;
JSON
{
  "hex": "#405bba",
  "rgb": {
    "r": 64,
    "g": 91,
    "b": 186
  },
  "hsl": {
    "h": 226.721,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.50257,
    "c": 0.15281,
    "h": 268.5
  },
  "luminance": 0.12117
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #405BBA

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

Preview Lab → · Contrast checker → · Palette generator →

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