#404CB6#404CB6

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

Color values

HEX#404CB6
RGBrgb(64, 76, 182)
HSLhsl(234, 48%, 48%)
HSVhsv(234, 65%, 71%)
CMYKcmyk(64.8%, 58.2%, 0%, 28.6%)
CIE-LABlab(37.18, 29.31, -57.74)
CIE-LCHlch(37.18, 64.76, 296.91°)
OKLaboklab(47% 0.0095 -0.1661)
OKLCHoklch(47% 0.166 273.3)
XYZxyz(13.1395, 9.6351, 45.4142)
Luminance0.0964 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404CB6 #B6AA40
analogous
#4087B6 #404CB6 #6F40B6
triadic
#404CB6 #B6404C #4CB640
tetradic
#404CB6 #B64087 #B6AA40 #40B66F
square
#404CB6 #B64087 #B6AA40 #40B66F
split-complementary
#404CB6 #B66F40 #87B640
monochromatic
#20265B #303989 #404CB6 #6973CA #969DDA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##404CB6#FFFFFF#000000##FFFFFF
##404CB61.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)
#005DBA
Deuteranopia (green-blind)
#0052B4
Tritanopia (blue-blind)
#006679
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #404cb6;
/* rgb */ color: rgb(64, 76, 182);
/* oklch */ color: oklch(47.0% 0.166 273.3);
Tailwind
colors: {
  custom: {
    50: '#827ecd',
    500: '#404cb6',
    950: '#000000',
  },
}
SCSS
$custom: #404cb6;
$custom-light: #827ecd;
$custom-dark: #000000;
JSON
{
  "hex": "#404cb6",
  "rgb": {
    "r": 64,
    "g": 76,
    "b": 182
  },
  "hsl": {
    "h": 233.898,
    "s": 47.967,
    "l": 48.235
  },
  "oklch": {
    "l": 0.46997,
    "c": 0.16641,
    "h": 273.3
  },
  "luminance": 0.09636
}

Semantic roles & 50–950 ramp

primary
#404CB6
secondary
#C6C08C
accent
#CA50D8
background
#F8F7FC
surface
#F0EEF9
border
#CBC9D2
text
#0C0913
muted
#7D7B82

Preview Lab

Preview with #404CB6

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

Preview Lab → · Contrast checker → · Palette generator →

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