#404CBF#404CBF

#404CBF is a mid, vivid blue. Relative luminance 0.100; OKLCH L 47.7% C 0.179 H 273.0°. Best body text is #FFFFFF at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#404CBF
RGBrgb(64, 76, 191)
HSLhsl(234, 50%, 50%)
HSVhsv(234, 66%, 75%)
CMYKcmyk(66.5%, 60.2%, 0%, 25.1%)
CIE-LABlab(37.88, 32.46, -61.89)
CIE-LCHlch(37.88, 69.89, 297.67°)
OKLaboklab(47.73% 0.0095 -0.1783)
OKLCHoklch(47.73% 0.179 273)
XYZxyz(14.0996, 10.0192, 50.4710)
Luminance0.1002 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404CBF #BFB340
analogous
#408BBF #404CBF #7440BF
triadic
#404CBF #BF404C #4CBF40
tetradic
#404CBF #BF408B #BFB340 #40BF74
square
#404CBF #BF408B #BFB340 #40BF74
split-complementary
#404CBF #BF7440 #8BBF40
monochromatic
#212863 #313A91 #404CBF #6E77CE #9CA2DE

Accessibility & contrast

On white

6.99
#404CBF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #404CBF
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404CBF#FFFFFF#000000##FFFFFF
##404CBF1.006.993.006.99
#FFFFFF6.991.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF6.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC3
Deuteranopia (green-blind)
#0054BD
Tritanopia (blue-blind)
#00697E
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #404cbf;
/* rgb */ color: rgb(64, 76, 191);
/* oklch */ color: oklch(47.7% 0.179 273.0);
Tailwind
colors: {
  custom: {
    50: '#847ed3',
    500: '#404cbf',
    950: '#000000',
  },
}
SCSS
$custom: #404cbf;
$custom-light: #847ed3;
$custom-dark: #000000;
JSON
{
  "hex": "#404cbf",
  "rgb": {
    "r": 64,
    "g": 76,
    "b": 191
  },
  "hsl": {
    "h": 234.331,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.47733,
    "c": 0.17859,
    "h": 273
  },
  "luminance": 0.1002
}

Semantic roles & 50–950 ramp

primary
#404CBF
secondary
#CAC491
accent
#CC4ED9
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0C0A14
muted
#7D7C83

Preview Lab

Preview with #404CBF

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

Preview Lab → · Contrast checker → · Palette generator →

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