#404FA8#404FA8

#404FA8 is a mid, vivid blue. Relative luminance 0.095; OKLCH L 46.5% C 0.143 H 272.4°. Best body text is #FFFFFF at 7.24:1 contrast (WCAG AA passes).

Color values

HEX#404FA8
RGBrgb(64, 79, 168)
HSLhsl(231, 45%, 45%)
HSVhsv(231, 62%, 66%)
CMYKcmyk(61.9%, 53%, 0%, 34.1%)
CIE-LABlab(36.94, 22.45, -49.83)
CIE-LCHlch(36.94, 54.65, 294.26°)
OKLaboklab(46.5% 0.0061 -0.1428)
OKLCHoklch(46.5% 0.143 272.4)
XYZxyz(11.9759, 9.5081, 38.2423)
Luminance0.0951 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404FA8 #A89940
analogous
#4083A8 #404FA8 #6540A8
triadic
#404FA8 #A8404F #4FA840
tetradic
#404FA8 #A84083 #A89940 #40A865
square
#404FA8 #A84083 #A89940 #40A865
split-complementary
#404FA8 #A86540 #83A840
monochromatic
#1E254F #2F3A7C #404FA8 #6270C3 #8E98D4

Accessibility & contrast

On white

7.24
#404FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#404FA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404FA8
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404FA8#FFFFFF#000000##FFFFFF
##404FA81.007.242.907.24
#FFFFFF7.241.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#195CAB
Deuteranopia (green-blind)
#0053A6
Tritanopia (blue-blind)
#006474
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #404fa8;
/* rgb */ color: rgb(64, 79, 168);
/* oklch */ color: oklch(46.5% 0.143 272.4);
Tailwind
colors: {
  custom: {
    50: '#7f80c2',
    500: '#404fa8',
    950: '#000000',
  },
}
SCSS
$custom: #404fa8;
$custom-light: #7f80c2;
$custom-dark: #000000;
JSON
{
  "hex": "#404fa8",
  "rgb": {
    "r": 64,
    "g": 79,
    "b": 168
  },
  "hsl": {
    "h": 231.346,
    "s": 44.828,
    "l": 45.49
  },
  "oklch": {
    "l": 0.46499,
    "c": 0.14295,
    "h": 272.4
  },
  "luminance": 0.09509
}

Semantic roles & 50–950 ramp

primary
#404FA8
secondary
#BFB785
accent
#C253D5
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0A12
muted
#7C7C81

Preview Lab

Preview with #404FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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