#404FB4#404FB4

#404FB4 is a mid, vivid blue. Relative luminance 0.100; OKLCH L 47.4% C 0.160 H 272.4°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#404FB4
RGBrgb(64, 79, 180)
HSLhsl(232, 48%, 48%)
HSVhsv(232, 64%, 71%)
CMYKcmyk(64.4%, 56.1%, 0%, 29.4%)
CIE-LABlab(37.80, 26.68, -55.56)
CIE-LCHlch(37.80, 61.63, 295.65°)
OKLaboklab(47.41% 0.0068 -0.1597)
OKLCHoklch(47.41% 0.16 272.4)
XYZxyz(13.1458, 9.9761, 44.4040)
Luminance0.0998 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404FB4 #B4A540
analogous
#4089B4 #404FB4 #6B40B4
triadic
#404FB4 #B4404F #4FB440
tetradic
#404FB4 #B44089 #B4A540 #40B46B
square
#404FB4 #B44089 #B4A540 #40B46B
split-complementary
#404FB4 #B46B40 #89B440
monochromatic
#20275A #303B87 #404FB4 #6875C9 #959ED9

Accessibility & contrast

On white

7.01
#404FB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#404FB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #404FB4
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404FB4#FFFFFF#000000##FFFFFF
##404FB41.007.013.007.01
#FFFFFF7.011.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EB7
Deuteranopia (green-blind)
#0054B2
Tritanopia (blue-blind)
#00677A
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #404fb4;
/* rgb */ color: rgb(64, 79, 180);
/* oklch */ color: oklch(47.4% 0.160 272.4);
Tailwind
colors: {
  custom: {
    50: '#8180cb',
    500: '#404fb4',
    950: '#000000',
  },
}
SCSS
$custom: #404fb4;
$custom-light: #8180cb;
$custom-dark: #000000;
JSON
{
  "hex": "#404fb4",
  "rgb": {
    "r": 64,
    "g": 79,
    "b": 180
  },
  "hsl": {
    "h": 232.241,
    "s": 47.541,
    "l": 47.843
  },
  "oklch": {
    "l": 0.47412,
    "c": 0.15982,
    "h": 272.4
  },
  "luminance": 0.09977
}

Semantic roles & 50–950 ramp

primary
#404FB4
secondary
#C5BD8B
accent
#C651D7
background
#F8F7FC
surface
#F0EEF9
border
#CBC9D2
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #404FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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