#404FBB#404FBB

#404FBB is a mid, vivid blue. Relative luminance 0.103; OKLCH L 48.0% C 0.169 H 272.3°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#404FBB
RGBrgb(64, 79, 187)
HSLhsl(233, 49%, 49%)
HSVhsv(233, 66%, 73%)
CMYKcmyk(65.8%, 57.8%, 0%, 26.7%)
CIE-LABlab(38.32, 29.14, -58.83)
CIE-LCHlch(38.32, 65.65, 296.35°)
OKLaboklab(47.97% 0.0069 -0.1693)
OKLCHoklch(47.97% 0.169 272.3)
XYZxyz(13.8770, 10.2686, 48.2548)
Luminance0.1027 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404FBB #BBAC40
analogous
#408DBB #404FBB #6F40BB
triadic
#404FBB #BB404F #4FBB40
tetradic
#404FBB #BB408D #BBAC40 #40BB6F
square
#404FBB #BB408D #BBAC40 #40BB6F
split-complementary
#404FBB #BB6F40 #8DBB40
monochromatic
#212860 #303C8D #404FBB #6C77CD #99A1DC

Accessibility & contrast

On white

6.88
#404FBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#404FBB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #404FBB
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404FBB#FFFFFF#000000##FFFFFF
##404FBB1.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BF
Deuteranopia (green-blind)
#0055B9
Tritanopia (blue-blind)
#00697D
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #404fbb;
/* rgb */ color: rgb(64, 79, 187);
/* oklch */ color: oklch(48.0% 0.169 272.3);
Tailwind
colors: {
  custom: {
    50: '#8380d0',
    500: '#404fbb',
    950: '#000000',
  },
}
SCSS
$custom: #404fbb;
$custom-light: #8380d0;
$custom-dark: #000000;
JSON
{
  "hex": "#404fbb",
  "rgb": {
    "r": 64,
    "g": 79,
    "b": 187
  },
  "hsl": {
    "h": 232.683,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.47965,
    "c": 0.16945,
    "h": 272.3
  },
  "luminance": 0.1027
}

Semantic roles & 50–950 ramp

primary
#404FBB
secondary
#C8C18F
accent
#C84FD9
background
#F8F7FC
surface
#F0EEF9
border
#CBC9D2
text
#0C0A14
muted
#7D7C82

Preview Lab

Preview with #404FBB

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

Preview Lab → · Contrast checker → · Palette generator →

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