#404FBF#404FBF

#404FBF is a mid, vivid blue. Relative luminance 0.104; OKLCH L 48.3% C 0.175 H 272.3°. Best body text is #FFFFFF at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#404FBF
RGBrgb(64, 79, 191)
HSLhsl(233, 50%, 50%)
HSVhsv(233, 66%, 75%)
CMYKcmyk(66.5%, 58.6%, 0%, 25.1%)
CIE-LABlab(38.62, 30.55, -60.67)
CIE-LCHlch(38.62, 67.93, 296.73°)
OKLaboklab(48.29% 0.007 -0.1747)
OKLCHoklch(48.29% 0.175 272.3)
XYZxyz(14.3112, 10.4422, 50.5415)
Luminance0.1044 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404FBF #BFB040
analogous
#408FBF #404FBF #7040BF
triadic
#404FBF #BF404F #4FBF40
tetradic
#404FBF #BF408F #BFB040 #40BF70
square
#404FBF #BF408F #BFB040 #40BF70
split-complementary
#404FBF #BF7040 #8FBF40
monochromatic
#212963 #313C91 #404FBF #6E79CE #9CA3DE

Accessibility & contrast

On white

6.80
#404FBF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#404FBF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #404FBF
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404FBF#FFFFFF#000000##FFFFFF
##404FBF1.006.803.096.80
#FFFFFF6.801.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C3
Deuteranopia (green-blind)
#0055BD
Tritanopia (blue-blind)
#006B7F
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #404fbf;
/* rgb */ color: rgb(64, 79, 191);
/* oklch */ color: oklch(48.3% 0.175 272.3);
Tailwind
colors: {
  custom: {
    50: '#8380d3',
    500: '#404fbf',
    950: '#000000',
  },
}
SCSS
$custom: #404fbf;
$custom-light: #8380d3;
$custom-dark: #000000;
JSON
{
  "hex": "#404fbf",
  "rgb": {
    "r": 64,
    "g": 79,
    "b": 191
  },
  "hsl": {
    "h": 232.913,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.48287,
    "c": 0.17487,
    "h": 272.3
  },
  "luminance": 0.10444
}

Semantic roles & 50–950 ramp

primary
#404FBF
secondary
#CAC391
accent
#C94ED9
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0C0A14
muted
#7D7C83

Preview Lab

Preview with #404FBF

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

Preview Lab → · Contrast checker → · Palette generator →

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