#404DB3#404DB3

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

Color values

HEX#404DB3
RGBrgb(64, 77, 179)
HSLhsl(233, 47%, 48%)
HSVhsv(233, 64%, 70%)
CMYKcmyk(64.2%, 57%, 0%, 29.8%)
CIE-LABlab(37.21, 27.62, -55.92)
CIE-LCHlch(37.21, 62.37, 296.28°)
OKLaboklab(46.95% 0.0086 -0.1608)
OKLCHoklch(46.95% 0.161 273)
XYZxyz(12.9022, 9.6513, 43.8220)
Luminance0.0965 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404DB3 #B3A640
analogous
#4087B3 #404DB3 #6C40B3
triadic
#404DB3 #B3404D #4DB340
tetradic
#404DB3 #B34087 #B3A640 #40B36C
square
#404DB3 #B34087 #B3A640 #40B36C
split-complementary
#404DB3 #B36C40 #87B340
monochromatic
#202659 #303A86 #404DB3 #6772C9 #949CD9

Accessibility & contrast

On white

7.17
#404DB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#404DB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404DB3
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404DB3#FFFFFF#000000##FFFFFF
##404DB31.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB6
Deuteranopia (green-blind)
#0053B1
Tritanopia (blue-blind)
#006678
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #404db3;
/* rgb */ color: rgb(64, 77, 179);
/* oklch */ color: oklch(46.9% 0.161 273.0);
Tailwind
colors: {
  custom: {
    50: '#817eca',
    500: '#404db3',
    950: '#000000',
  },
}
SCSS
$custom: #404db3;
$custom-light: #817eca;
$custom-dark: #000000;
JSON
{
  "hex": "#404db3",
  "rgb": {
    "r": 64,
    "g": 77,
    "b": 179
  },
  "hsl": {
    "h": 233.217,
    "s": 47.325,
    "l": 47.647
  },
  "oklch": {
    "l": 0.46948,
    "c": 0.16102,
    "h": 273
  },
  "luminance": 0.09652
}

Semantic roles & 50–950 ramp

primary
#404DB3
secondary
#C4BE8A
accent
#C851D7
background
#F8F7FC
surface
#F0EEF8
border
#CBC9D1
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #404DB3

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

Preview Lab → · Contrast checker → · Palette generator →

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