#404DB7#404DB7

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

Color values

HEX#404DB7
RGBrgb(64, 77, 183)
HSLhsl(233, 48%, 48%)
HSVhsv(233, 65%, 72%)
CMYKcmyk(65%, 57.9%, 0%, 28.2%)
CIE-LABlab(37.51, 29.02, -57.80)
CIE-LCHlch(37.51, 64.67, 296.66°)
OKLaboklab(47.27% 0.0086 -0.1663)
OKLCHoklch(47.27% 0.167 273)
XYZxyz(13.3126, 9.8155, 45.9836)
Luminance0.0982 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404DB7 #B7AA40
analogous
#4088B7 #404DB7 #6E40B7
triadic
#404DB7 #B7404D #4DB740
tetradic
#404DB7 #B74088 #B7AA40 #40B76E
square
#404DB7 #B74088 #B7AA40 #40B76E
split-complementary
#404DB7 #B76E40 #88B740
monochromatic
#20275C #303A8A #404DB7 #6974CB #979EDB

Accessibility & contrast

On white

7.09
#404DB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#404DB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404DB7
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404DB7#FFFFFF#000000##FFFFFF
##404DB71.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBB
Deuteranopia (green-blind)
#0053B5
Tritanopia (blue-blind)
#00677A
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #404db7;
/* rgb */ color: rgb(64, 77, 183);
/* oklch */ color: oklch(47.3% 0.167 273.0);
Tailwind
colors: {
  custom: {
    50: '#827ecd',
    500: '#404db7',
    950: '#000000',
  },
}
SCSS
$custom: #404db7;
$custom-light: #827ecd;
$custom-dark: #000000;
JSON
{
  "hex": "#404db7",
  "rgb": {
    "r": 64,
    "g": 77,
    "b": 183
  },
  "hsl": {
    "h": 233.445,
    "s": 48.178,
    "l": 48.431
  },
  "oklch": {
    "l": 0.47266,
    "c": 0.16651,
    "h": 273
  },
  "luminance": 0.09817
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #404DB7

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

Preview Lab → · Contrast checker → · Palette generator →

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