#404CB8#404CB8

#404CB8 is a mid, vivid blue. Relative luminance 0.097; OKLCH L 47.2% C 0.169 H 273.2°. Best body text is #FFFFFF at 7.13:1 contrast (WCAG AA passes).

Color values

HEX#404CB8
RGBrgb(64, 76, 184)
HSLhsl(234, 48%, 49%)
HSVhsv(234, 65%, 72%)
CMYKcmyk(65.2%, 58.7%, 0%, 27.8%)
CIE-LABlab(37.33, 30.01, -58.67)
CIE-LCHlch(37.33, 65.90, 297.09°)
OKLaboklab(47.16% 0.0095 -0.1689)
OKLCHoklch(47.16% 0.169 273.2)
XYZxyz(13.3476, 9.7184, 46.5105)
Luminance0.0972 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404CB8 #B8AC40
analogous
#4088B8 #404CB8 #7040B8
triadic
#404CB8 #B8404C #4CB840
tetradic
#404CB8 #B84088 #B8AC40 #40B870
square
#404CB8 #B84088 #B8AC40 #40B870
split-complementary
#404CB8 #B87040 #88B840
monochromatic
#20265D #30398B #404CB8 #6A74CB #979EDB

Accessibility & contrast

On white

7.13
#404CB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#404CB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404CB8
7.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404CB8#FFFFFF#000000##FFFFFF
##404CB81.007.132.947.13
#FFFFFF7.131.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DBC
Deuteranopia (green-blind)
#0053B6
Tritanopia (blue-blind)
#00667A
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #404cb8;
/* rgb */ color: rgb(64, 76, 184);
/* oklch */ color: oklch(47.2% 0.169 273.2);
Tailwind
colors: {
  custom: {
    50: '#827ece',
    500: '#404cb8',
    950: '#000000',
  },
}
SCSS
$custom: #404cb8;
$custom-light: #827ece;
$custom-dark: #000000;
JSON
{
  "hex": "#404cb8",
  "rgb": {
    "r": 64,
    "g": 76,
    "b": 184
  },
  "hsl": {
    "h": 234,
    "s": 48.387,
    "l": 48.627
  },
  "oklch": {
    "l": 0.47159,
    "c": 0.16915,
    "h": 273.2
  },
  "luminance": 0.0972
}

Semantic roles & 50–950 ramp

primary
#404CB8
secondary
#C7C18D
accent
#CA50D8
background
#F8F7FC
surface
#F0EEF9
border
#CBC9D2
text
#0C0914
muted
#7D7B82

Preview Lab

Preview with #404CB8

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

Preview Lab → · Contrast checker → · Palette generator →

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