#404DB4#404DB4

#404DB4 is a mid, vivid blue. Relative luminance 0.097; OKLCH L 47.0% C 0.162 H 273.0°. Best body text is #FFFFFF at 7.15:1 contrast (WCAG AA passes).

Color values

HEX#404DB4
RGBrgb(64, 77, 180)
HSLhsl(233, 48%, 48%)
HSVhsv(233, 64%, 71%)
CMYKcmyk(64.4%, 57.2%, 0%, 29.4%)
CIE-LABlab(37.28, 27.97, -56.39)
CIE-LCHlch(37.28, 62.95, 296.38°)
OKLaboklab(47.03% 0.0086 -0.1622)
OKLCHoklch(47.03% 0.162 273)
XYZxyz(13.0037, 9.6919, 44.3566)
Luminance0.0969 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404DB4 #B4A740
analogous
#4087B4 #404DB4 #6D40B4
triadic
#404DB4 #B4404D #4DB440
tetradic
#404DB4 #B44087 #B4A740 #40B46D
square
#404DB4 #B44087 #B4A740 #40B46D
split-complementary
#404DB4 #B46D40 #87B440
monochromatic
#20265A #303A87 #404DB4 #6873C9 #959DD9

Accessibility & contrast

On white

7.15
#404DB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#404DB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404DB4
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404DB4#FFFFFF#000000##FFFFFF
##404DB41.007.152.947.15
#FFFFFF7.151.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB7
Deuteranopia (green-blind)
#0053B2
Tritanopia (blue-blind)
#006679
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #404db4;
/* rgb */ color: rgb(64, 77, 180);
/* oklch */ color: oklch(47.0% 0.162 273.0);
Tailwind
colors: {
  custom: {
    50: '#817ecb',
    500: '#404db4',
    950: '#000000',
  },
}
SCSS
$custom: #404db4;
$custom-light: #817ecb;
$custom-dark: #000000;
JSON
{
  "hex": "#404db4",
  "rgb": {
    "r": 64,
    "g": 77,
    "b": 180
  },
  "hsl": {
    "h": 233.276,
    "s": 47.541,
    "l": 47.843
  },
  "oklch": {
    "l": 0.47027,
    "c": 0.1624,
    "h": 273
  },
  "luminance": 0.09693
}

Semantic roles & 50–950 ramp

primary
#404DB4
secondary
#C5BE8B
accent
#C851D7
background
#F8F7FC
surface
#F0EEF9
border
#CBC9D2
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #404DB4

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

Preview Lab → · Contrast checker → · Palette generator →

#404DB4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva