#404AB8#404AB8

#404AB8 is a mid, vivid blue. Relative luminance 0.094; OKLCH L 46.8% C 0.172 H 273.8°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#404AB8
RGBrgb(64, 74, 184)
HSLhsl(235, 48%, 49%)
HSVhsv(235, 65%, 72%)
CMYKcmyk(65.2%, 59.8%, 0%, 27.8%)
CIE-LABlab(36.83, 31.29, -59.49)
CIE-LCHlch(36.83, 67.21, 297.74°)
OKLaboklab(46.79% 0.0113 -0.1713)
OKLCHoklch(46.79% 0.172 273.8)
XYZxyz(13.2120, 9.4471, 46.4653)
Luminance0.0945 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404AB8 #B8AE40
analogous
#4086B8 #404AB8 #7240B8
triadic
#404AB8 #B8404A #4AB840
tetradic
#404AB8 #B84086 #B8AE40 #40B872
square
#404AB8 #B84086 #B8AE40 #40B872
split-complementary
#404AB8 #B87240 #86B840
monochromatic
#20255D #30388B #404AB8 #6A72CB #979DDB

Accessibility & contrast

On white

7.27
#404AB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#404AB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404AB8
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404AB8#FFFFFF#000000##FFFFFF
##404AB81.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBC
Deuteranopia (green-blind)
#0051B6
Tritanopia (blue-blind)
#00657A
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #404ab8;
/* rgb */ color: rgb(64, 74, 184);
/* oklch */ color: oklch(46.8% 0.172 273.8);
Tailwind
colors: {
  custom: {
    50: '#827cce',
    500: '#404ab8',
    950: '#000000',
  },
}
SCSS
$custom: #404ab8;
$custom-light: #827cce;
$custom-dark: #000000;
JSON
{
  "hex": "#404ab8",
  "rgb": {
    "r": 64,
    "g": 74,
    "b": 184
  },
  "hsl": {
    "h": 235,
    "s": 48.387,
    "l": 48.627
  },
  "oklch": {
    "l": 0.46787,
    "c": 0.17166,
    "h": 273.8
  },
  "luminance": 0.09448
}

Semantic roles & 50–950 ramp

primary
#404AB8
secondary
#C7C28D
accent
#CD50D8
background
#F8F7FC
surface
#F0EEF9
border
#CBC9D2
text
#0C0914
muted
#7D7B82

Preview Lab

Preview with #404AB8

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

Preview Lab → · Contrast checker → · Palette generator →

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