#404EB9#404EB9

#404EB9 is a mid, vivid blue. Relative luminance 0.100; OKLCH L 47.6% C 0.168 H 272.7°. Best body text is #FFFFFF at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#404EB9
RGBrgb(64, 78, 185)
HSLhsl(233, 49%, 49%)
HSVhsv(233, 65%, 73%)
CMYKcmyk(65.4%, 57.8%, 0%, 27.5%)
CIE-LABlab(37.91, 29.08, -58.31)
CIE-LCHlch(37.91, 65.16, 296.51°)
OKLaboklab(47.62% 0.0078 -0.1678)
OKLCHoklch(47.62% 0.168 272.7)
XYZxyz(13.5928, 10.0403, 47.1112)
Luminance0.1004 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404EB9 #B9AB40
analogous
#408BB9 #404EB9 #6F40B9
triadic
#404EB9 #B9404E #4EB940
tetradic
#404EB9 #B9408B #B9AB40 #40B96F
square
#404EB9 #B9408B #B9AB40 #40B96F
split-complementary
#404EB9 #B96F40 #8BB940
monochromatic
#21285E #303B8C #404EB9 #6B76CC #98A0DB

Accessibility & contrast

On white

6.98
#404EB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#404EB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #404EB9
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404EB9#FFFFFF#000000##FFFFFF
##404EB91.006.983.016.98
#FFFFFF6.981.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBD
Deuteranopia (green-blind)
#0054B7
Tritanopia (blue-blind)
#00687C
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #404eb9;
/* rgb */ color: rgb(64, 78, 185);
/* oklch */ color: oklch(47.6% 0.168 272.7);
Tailwind
colors: {
  custom: {
    50: '#827fcf',
    500: '#404eb9',
    950: '#000000',
  },
}
SCSS
$custom: #404eb9;
$custom-light: #827fcf;
$custom-dark: #000000;
JSON
{
  "hex": "#404eb9",
  "rgb": {
    "r": 64,
    "g": 78,
    "b": 185
  },
  "hsl": {
    "h": 233.058,
    "s": 48.594,
    "l": 48.824
  },
  "oklch": {
    "l": 0.47616,
    "c": 0.16798,
    "h": 272.7
  },
  "luminance": 0.10042
}

Semantic roles & 50–950 ramp

primary
#404EB9
secondary
#C7C18E
accent
#C850D8
background
#F8F7FC
surface
#F0EEF9
border
#CBC9D2
text
#0C0A14
muted
#7D7C82

Preview Lab

Preview with #404EB9

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

Preview Lab → · Contrast checker → · Palette generator →

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