#404DB8#404DB8

#404DB8 is a mid, vivid blue. Relative luminance 0.099; OKLCH L 47.3% C 0.168 H 273.0°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#404DB8
RGBrgb(64, 77, 184)
HSLhsl(234, 48%, 49%)
HSVhsv(234, 65%, 72%)
CMYKcmyk(65.2%, 58.2%, 0%, 27.8%)
CIE-LABlab(37.59, 29.37, -58.26)
CIE-LCHlch(37.59, 65.25, 296.75°)
OKLaboklab(47.35% 0.0087 -0.1677)
OKLCHoklch(47.35% 0.168 273)
XYZxyz(13.4171, 9.8573, 46.5337)
Luminance0.0986 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404DB8 #B8AB40
analogous
#4089B8 #404DB8 #6F40B8
triadic
#404DB8 #B8404D #4DB840
tetradic
#404DB8 #B84089 #B8AB40 #40B86F
square
#404DB8 #B84089 #B8AB40 #40B86F
split-complementary
#404DB8 #B86F40 #89B840
monochromatic
#20275D #303A8B #404DB8 #6A75CB #979FDB

Accessibility & contrast

On white

7.07
#404DB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#404DB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404DB8
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404DB8#FFFFFF#000000##FFFFFF
##404DB81.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBC
Deuteranopia (green-blind)
#0053B6
Tritanopia (blue-blind)
#00677B
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #404db8;
/* rgb */ color: rgb(64, 77, 184);
/* oklch */ color: oklch(47.3% 0.168 273.0);
Tailwind
colors: {
  custom: {
    50: '#827ece',
    500: '#404db8',
    950: '#000000',
  },
}
SCSS
$custom: #404db8;
$custom-light: #827ece;
$custom-dark: #000000;
JSON
{
  "hex": "#404db8",
  "rgb": {
    "r": 64,
    "g": 77,
    "b": 184
  },
  "hsl": {
    "h": 233.5,
    "s": 48.387,
    "l": 48.627
  },
  "oklch": {
    "l": 0.47346,
    "c": 0.16788,
    "h": 273
  },
  "luminance": 0.09858
}

Semantic roles & 50–950 ramp

primary
#404DB8
secondary
#C7C08D
accent
#C950D8
background
#F8F7FC
surface
#F0EEF9
border
#CBC9D2
text
#0C0A14
muted
#7D7C82

Preview Lab

Preview with #404DB8

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

Preview Lab → · Contrast checker → · Palette generator →

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