#405AB8#405AB8

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

Color values

HEX#405AB8
RGBrgb(64, 90, 184)
HSLhsl(227, 48%, 49%)
HSVhsv(227, 65%, 72%)
CMYKcmyk(65.2%, 51.1%, 0%, 27.8%)
CIE-LABlab(41.00, 21.00, -52.74)
CIE-LCHlch(41.00, 56.77, 291.71°)
OKLaboklab(49.91% -0.0033 -0.1513)
OKLCHoklch(49.91% 0.151 268.8)
XYZxyz(14.4193, 11.8617, 46.8678)
Luminance0.1186 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#405AB8 #B89E40
analogous
#4096B8 #405AB8 #6240B8
triadic
#405AB8 #B8405A #5AB840
tetradic
#405AB8 #B84096 #B89E40 #40B862
square
#405AB8 #B84096 #B89E40 #40B862
split-complementary
#405AB8 #B86240 #96B840
monochromatic
#202E5D #30448B #405AB8 #6A7FCB #97A6DB

Accessibility & contrast

On white

6.23
#405AB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #405AB8
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##405AB8#FFFFFF#000000##FFFFFF
##405AB81.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2466BB
Deuteranopia (green-blind)
#005CB6
Tritanopia (blue-blind)
#007080
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #405ab8;
/* rgb */ color: rgb(64, 90, 184);
/* oklch */ color: oklch(49.9% 0.151 268.8);
Tailwind
colors: {
  custom: {
    50: '#8188ce',
    500: '#405ab8',
    950: '#000000',
  },
}
SCSS
$custom: #405ab8;
$custom-light: #8188ce;
$custom-dark: #000000;
JSON
{
  "hex": "#405ab8",
  "rgb": {
    "r": 64,
    "g": 90,
    "b": 184
  },
  "hsl": {
    "h": 227,
    "s": 48.387,
    "l": 48.627
  },
  "oklch": {
    "l": 0.49908,
    "c": 0.1513,
    "h": 268.8
  },
  "luminance": 0.11863
}

Semantic roles & 50–950 ramp

primary
#405AB8
secondary
#C7BA8D
accent
#BA50D8
background
#F8F8FC
surface
#F0EFF9
border
#CBCAD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #405AB8

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

Preview Lab → · Contrast checker → · Palette generator →

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