#404EB8#404EB8

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

Color values

HEX#404EB8
RGBrgb(64, 78, 184)
HSLhsl(233, 48%, 49%)
HSVhsv(233, 65%, 72%)
CMYKcmyk(65.2%, 57.6%, 0%, 27.8%)
CIE-LABlab(37.84, 28.73, -57.85)
CIE-LCHlch(37.84, 64.59, 296.41°)
OKLaboklab(47.54% 0.0078 -0.1664)
OKLCHoklch(47.54% 0.167 272.7)
XYZxyz(13.4876, 9.9983, 46.5572)
Luminance0.1000 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404EB8 #B8AA40
analogous
#408AB8 #404EB8 #6E40B8
triadic
#404EB8 #B8404E #4EB840
tetradic
#404EB8 #B8408A #B8AA40 #40B86E
square
#404EB8 #B8408A #B8AA40 #40B86E
split-complementary
#404EB8 #B86E40 #8AB840
monochromatic
#20285D #303B8B #404EB8 #6A75CB #979FDB

Accessibility & contrast

On white

7.00
#404EB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #404EB8
7.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404EB8#FFFFFF#000000##FFFFFF
##404EB81.007.003.007.00
#FFFFFF7.001.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBC
Deuteranopia (green-blind)
#0054B6
Tritanopia (blue-blind)
#00687B
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #404eb8;
/* rgb */ color: rgb(64, 78, 184);
/* oklch */ color: oklch(47.5% 0.167 272.7);
Tailwind
colors: {
  custom: {
    50: '#827fce',
    500: '#404eb8',
    950: '#000000',
  },
}
SCSS
$custom: #404eb8;
$custom-light: #827fce;
$custom-dark: #000000;
JSON
{
  "hex": "#404eb8",
  "rgb": {
    "r": 64,
    "g": 78,
    "b": 184
  },
  "hsl": {
    "h": 233,
    "s": 48.387,
    "l": 48.627
  },
  "oklch": {
    "l": 0.47536,
    "c": 0.16661,
    "h": 272.7
  },
  "luminance": 0.09999
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #404EB8

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

Preview Lab → · Contrast checker → · Palette generator →

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