#404CB4#404CB4

#404CB4 is a mid, vivid blue. Relative luminance 0.096; OKLCH L 46.8% C 0.164 H 273.3°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#404CB4
RGBrgb(64, 76, 180)
HSLhsl(234, 48%, 48%)
HSVhsv(234, 64%, 71%)
CMYKcmyk(64.4%, 57.8%, 0%, 29.4%)
CIE-LABlab(37.03, 28.61, -56.81)
CIE-LCHlch(37.03, 63.61, 296.73°)
OKLaboklab(46.84% 0.0095 -0.1634)
OKLCHoklch(46.84% 0.164 273.3)
XYZxyz(12.9343, 9.5530, 44.3335)
Luminance0.0955 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404CB4 #B4A840
analogous
#4086B4 #404CB4 #6E40B4
triadic
#404CB4 #B4404C #4CB440
tetradic
#404CB4 #B44086 #B4A840 #40B46E
square
#404CB4 #B44086 #B4A840 #40B46E
split-complementary
#404CB4 #B46E40 #86B440
monochromatic
#20265A #303987 #404CB4 #6872C9 #959CD9

Accessibility & contrast

On white

7.21
#404CB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#404CB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404CB4
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404CB4#FFFFFF#000000##FFFFFF
##404CB41.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB8
Deuteranopia (green-blind)
#0052B2
Tritanopia (blue-blind)
#006578
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #404cb4;
/* rgb */ color: rgb(64, 76, 180);
/* oklch */ color: oklch(46.8% 0.164 273.3);
Tailwind
colors: {
  custom: {
    50: '#817ecb',
    500: '#404cb4',
    950: '#000000',
  },
}
SCSS
$custom: #404cb4;
$custom-light: #817ecb;
$custom-dark: #000000;
JSON
{
  "hex": "#404cb4",
  "rgb": {
    "r": 64,
    "g": 76,
    "b": 180
  },
  "hsl": {
    "h": 233.793,
    "s": 47.541,
    "l": 47.843
  },
  "oklch": {
    "l": 0.46837,
    "c": 0.16368,
    "h": 273.3
  },
  "luminance": 0.09554
}

Semantic roles & 50–950 ramp

primary
#404CB4
secondary
#C5BF8B
accent
#C951D7
background
#F8F7FC
surface
#F0EEF9
border
#CBC9D2
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #404CB4

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

Preview Lab → · Contrast checker → · Palette generator →

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