#405BBB#405BBB

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

Color values

HEX#405BBB
RGBrgb(64, 91, 187)
HSLhsl(227, 49%, 49%)
HSVhsv(227, 66%, 73%)
CMYKcmyk(65.8%, 51.3%, 0%, 26.7%)
CIE-LABlab(41.47, 21.43, -53.73)
CIE-LCHlch(41.47, 57.85, 291.74°)
OKLaboklab(50.33% -0.0039 -0.1542)
OKLCHoklch(50.33% 0.154 268.5)
XYZxyz(14.8220, 12.1586, 48.5698)
Luminance0.1216 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405BBB #BBA040
analogous
#4099BB #405BBB #6340BB
triadic
#405BBB #BB405B #5BBB40
tetradic
#405BBB #BB4099 #BBA040 #40BB63
square
#405BBB #BB4099 #BBA040 #40BB63
split-complementary
#405BBB #BB6340 #99BB40
monochromatic
#212F60 #30458D #405BBB #6C81CD #99A8DC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##405BBB#FFFFFF#000000##FFFFFF
##405BBB1.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)
#2268BE
Deuteranopia (green-blind)
#005DB9
Tritanopia (blue-blind)
#007282
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #405bbb;
/* rgb */ color: rgb(64, 91, 187);
/* oklch */ color: oklch(50.3% 0.154 268.5);
Tailwind
colors: {
  custom: {
    50: '#8289d0',
    500: '#405bbb',
    950: '#000000',
  },
}
SCSS
$custom: #405bbb;
$custom-light: #8289d0;
$custom-dark: #000000;
JSON
{
  "hex": "#405bbb",
  "rgb": {
    "r": 64,
    "g": 91,
    "b": 187
  },
  "hsl": {
    "h": 226.829,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.5033,
    "c": 0.15421,
    "h": 268.5
  },
  "luminance": 0.1216
}

Semantic roles & 50–950 ramp

primary
#405BBB
secondary
#C8BB8F
accent
#BA4FD9
background
#F8F8FC
surface
#F0EFF9
border
#CBCAD2
text
#0C0B14
muted
#7D7C82

Preview Lab

Preview with #405BBB

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

Preview Lab → · Contrast checker → · Palette generator →

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