#404FB8#404FB8

#404FB8 is a mid, vivid blue. Relative luminance 0.101; OKLCH L 47.7% C 0.165 H 272.4°. Best body text is #FFFFFF at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#404FB8
RGBrgb(64, 79, 184)
HSLhsl(233, 48%, 49%)
HSVhsv(233, 65%, 72%)
CMYKcmyk(65.2%, 57.1%, 0%, 27.8%)
CIE-LABlab(38.09, 28.09, -57.43)
CIE-LCHlch(38.09, 63.93, 296.06°)
OKLaboklab(47.73% 0.0069 -0.1652)
OKLCHoklch(47.73% 0.165 272.4)
XYZxyz(13.5592, 10.1414, 46.5810)
Luminance0.1014 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404FB8 #B8A940
analogous
#408BB8 #404FB8 #6D40B8
triadic
#404FB8 #B8404F #4FB840
tetradic
#404FB8 #B8408B #B8A940 #40B86D
square
#404FB8 #B8408B #B8A940 #40B86D
split-complementary
#404FB8 #B86D40 #8BB840
monochromatic
#20285D #303C8B #404FB8 #6A76CB #97A0DB

Accessibility & contrast

On white

6.93
#404FB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#404FB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #404FB8
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404FB8#FFFFFF#000000##FFFFFF
##404FB81.006.933.036.93
#FFFFFF6.931.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBC
Deuteranopia (green-blind)
#0054B6
Tritanopia (blue-blind)
#00687C
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #404fb8;
/* rgb */ color: rgb(64, 79, 184);
/* oklch */ color: oklch(47.7% 0.165 272.4);
Tailwind
colors: {
  custom: {
    50: '#8280ce',
    500: '#404fb8',
    950: '#000000',
  },
}
SCSS
$custom: #404fb8;
$custom-light: #8280ce;
$custom-dark: #000000;
JSON
{
  "hex": "#404fb8",
  "rgb": {
    "r": 64,
    "g": 79,
    "b": 184
  },
  "hsl": {
    "h": 232.5,
    "s": 48.387,
    "l": 48.627
  },
  "oklch": {
    "l": 0.47726,
    "c": 0.16534,
    "h": 272.4
  },
  "luminance": 0.10143
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #404FB8

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

Preview Lab → · Contrast checker → · Palette generator →

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