#404EB5#404EB5

#404EB5 is a mid, vivid blue. Relative luminance 0.099; OKLCH L 47.3% C 0.162 H 272.7°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#404EB5
RGBrgb(64, 78, 181)
HSLhsl(233, 48%, 48%)
HSVhsv(233, 65%, 71%)
CMYKcmyk(64.6%, 56.9%, 0%, 29%)
CIE-LABlab(37.62, 27.68, -56.45)
CIE-LCHlch(37.62, 62.87, 296.12°)
OKLaboklab(47.3% 0.0077 -0.1623)
OKLCHoklch(47.3% 0.162 272.7)
XYZxyz(13.1765, 9.8738, 44.9186)
Luminance0.0988 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404EB5 #B5A740
analogous
#4088B5 #404EB5 #6D40B5
triadic
#404EB5 #B5404E #4EB540
tetradic
#404EB5 #B54088 #B5A740 #40B56D
square
#404EB5 #B54088 #B5A740 #40B56D
split-complementary
#404EB5 #B56D40 #88B540
monochromatic
#20275B #303B88 #404EB5 #6874CA #969EDA

Accessibility & contrast

On white

7.06
#404EB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#404EB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404EB5
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404EB5#FFFFFF#000000##FFFFFF
##404EB51.007.062.977.06
#FFFFFF7.061.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EB9
Deuteranopia (green-blind)
#0053B3
Tritanopia (blue-blind)
#00677A
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #404eb5;
/* rgb */ color: rgb(64, 78, 181);
/* oklch */ color: oklch(47.3% 0.162 272.7);
Tailwind
colors: {
  custom: {
    50: '#827fcc',
    500: '#404eb5',
    950: '#000000',
  },
}
SCSS
$custom: #404eb5;
$custom-light: #827fcc;
$custom-dark: #000000;
JSON
{
  "hex": "#404eb5",
  "rgb": {
    "r": 64,
    "g": 78,
    "b": 181
  },
  "hsl": {
    "h": 232.821,
    "s": 47.755,
    "l": 48.039
  },
  "oklch": {
    "l": 0.47298,
    "c": 0.16249,
    "h": 272.7
  },
  "luminance": 0.09875
}

Semantic roles & 50–950 ramp

primary
#404EB5
secondary
#C5BE8B
accent
#C750D7
background
#F8F7FC
surface
#F0EEF9
border
#CBC9D2
text
#0C0A13
muted
#7D7C82

Preview Lab

Preview with #404EB5

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

Preview Lab → · Contrast checker → · Palette generator →

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