#404DB5#404DB5

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

Color values

HEX#404DB5
RGBrgb(64, 77, 181)
HSLhsl(233, 48%, 48%)
HSVhsv(233, 65%, 71%)
CMYKcmyk(64.6%, 57.5%, 0%, 29%)
CIE-LABlab(37.36, 28.32, -56.86)
CIE-LCHlch(37.36, 63.52, 296.47°)
OKLaboklab(47.11% 0.0086 -0.1635)
OKLCHoklch(47.11% 0.164 273)
XYZxyz(13.1059, 9.7328, 44.8951)
Luminance0.0973 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404DB5 #B5A840
analogous
#4088B5 #404DB5 #6D40B5
triadic
#404DB5 #B5404D #4DB540
tetradic
#404DB5 #B54088 #B5A840 #40B56D
square
#404DB5 #B54088 #B5A840 #40B56D
split-complementary
#404DB5 #B56D40 #88B540
monochromatic
#20275B #303A88 #404DB5 #6873CA #969DDA

Accessibility & contrast

On white

7.13
#404DB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#404DB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404DB5
7.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404DB5#FFFFFF#000000##FFFFFF
##404DB51.007.132.957.13
#FFFFFF7.131.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.131.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #404db5;
/* rgb */ color: rgb(64, 77, 181);
/* oklch */ color: oklch(47.1% 0.164 273.0);
Tailwind
colors: {
  custom: {
    50: '#827ecc',
    500: '#404db5',
    950: '#000000',
  },
}
SCSS
$custom: #404db5;
$custom-light: #827ecc;
$custom-dark: #000000;
JSON
{
  "hex": "#404db5",
  "rgb": {
    "r": 64,
    "g": 77,
    "b": 181
  },
  "hsl": {
    "h": 233.333,
    "s": 47.755,
    "l": 48.039
  },
  "oklch": {
    "l": 0.47106,
    "c": 0.16378,
    "h": 273
  },
  "luminance": 0.09734
}

Semantic roles & 50–950 ramp

primary
#404DB5
secondary
#C5BF8B
accent
#C850D7
background
#F8F7FC
surface
#F0EEF9
border
#CBC9D2
text
#0C0A13
muted
#7D7C82

Preview Lab

Preview with #404DB5

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

Preview Lab → · Contrast checker → · Palette generator →

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