#404CB5#404CB5

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

Color values

HEX#404CB5
RGBrgb(64, 76, 181)
HSLhsl(234, 48%, 48%)
HSVhsv(234, 65%, 71%)
CMYKcmyk(64.6%, 58%, 0%, 29%)
CIE-LABlab(37.10, 28.96, -57.28)
CIE-LCHlch(37.10, 64.18, 296.82°)
OKLaboklab(46.92% 0.0095 -0.1648)
OKLCHoklch(46.92% 0.165 273.3)
XYZxyz(13.0365, 9.5939, 44.8719)
Luminance0.0959 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404CB5 #B5A940
analogous
#4086B5 #404CB5 #6E40B5
triadic
#404CB5 #B5404C #4CB540
tetradic
#404CB5 #B54086 #B5A940 #40B56E
square
#404CB5 #B54086 #B5A940 #40B56E
split-complementary
#404CB5 #B56E40 #86B540
monochromatic
#20265B #303988 #404CB5 #6872CA #969DDA

Accessibility & contrast

On white

7.19
#404CB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#404CB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404CB5
7.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404CB5#FFFFFF#000000##FFFFFF
##404CB51.007.192.927.19
#FFFFFF7.191.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB9
Deuteranopia (green-blind)
#0052B3
Tritanopia (blue-blind)
#006579
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #404cb5;
/* rgb */ color: rgb(64, 76, 181);
/* oklch */ color: oklch(46.9% 0.165 273.3);
Tailwind
colors: {
  custom: {
    50: '#827ecc',
    500: '#404cb5',
    950: '#000000',
  },
}
SCSS
$custom: #404cb5;
$custom-light: #827ecc;
$custom-dark: #000000;
JSON
{
  "hex": "#404cb5",
  "rgb": {
    "r": 64,
    "g": 76,
    "b": 181
  },
  "hsl": {
    "h": 233.846,
    "s": 47.755,
    "l": 48.039
  },
  "oklch": {
    "l": 0.46917,
    "c": 0.16504,
    "h": 273.3
  },
  "luminance": 0.09595
}

Semantic roles & 50–950 ramp

primary
#404CB5
secondary
#C5BF8B
accent
#CA50D7
background
#F8F7FC
surface
#F0EEF9
border
#CBC9D2
text
#0C0913
muted
#7D7B82

Preview Lab

Preview with #404CB5

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

Preview Lab → · Contrast checker → · Palette generator →

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