#405BB3#405BB3

#405BB3 is a mid, vivid blue. Relative luminance 0.118; OKLCH L 49.8% C 0.143 H 268.1°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#405BB3
RGBrgb(64, 91, 179)
HSLhsl(226, 47%, 48%)
HSVhsv(226, 64%, 70%)
CMYKcmyk(64.2%, 49.2%, 0%, 29.8%)
CIE-LABlab(40.94, 18.57, -49.90)
CIE-LCHlch(40.94, 53.24, 290.41°)
OKLaboklab(49.76% -0.0048 -0.1429)
OKLCHoklch(49.76% 0.143 268.1)
XYZxyz(13.9893, 11.8256, 44.1844)
Luminance0.1183 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405BB3 #B39840
analogous
#4094B3 #405BB3 #5E40B3
triadic
#405BB3 #B3405B #5BB340
tetradic
#405BB3 #B34094 #B39840 #40B35E
square
#405BB3 #B34094 #B39840 #40B35E
split-complementary
#405BB3 #B35E40 #94B340
monochromatic
#202D59 #304486 #405BB3 #677EC9 #94A5D9

Accessibility & contrast

On white

6.24
#405BB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#405BB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #405BB3
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405BB3#FFFFFF#000000##FFFFFF
##405BB31.006.243.376.24
#FFFFFF6.241.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C66B6
Deuteranopia (green-blind)
#125CB1
Tritanopia (blue-blind)
#006F7E
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #405bb3;
/* rgb */ color: rgb(64, 91, 179);
/* oklch */ color: oklch(49.8% 0.143 268.1);
Tailwind
colors: {
  custom: {
    50: '#8089ca',
    500: '#405bb3',
    950: '#000000',
  },
}
SCSS
$custom: #405bb3;
$custom-light: #8089ca;
$custom-dark: #000000;
JSON
{
  "hex": "#405bb3",
  "rgb": {
    "r": 64,
    "g": 91,
    "b": 179
  },
  "hsl": {
    "h": 225.913,
    "s": 47.325,
    "l": 47.647
  },
  "oklch": {
    "l": 0.49758,
    "c": 0.14297,
    "h": 268.1
  },
  "luminance": 0.11827
}

Semantic roles & 50–950 ramp

primary
#405BB3
secondary
#C4B78A
accent
#B751D7
background
#F8F8FC
surface
#EFEFF8
border
#CACAD1
text
#0B0B13
muted
#7C7C82

Preview Lab

Preview with #405BB3

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

Preview Lab → · Contrast checker → · Palette generator →

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