#404AA8#404AA8

#404AA8 is a mid, vivid blue. Relative luminance 0.088; OKLCH L 45.5% C 0.150 H 274.2°. Best body text is #FFFFFF at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#404AA8
RGBrgb(64, 74, 168)
HSLhsl(234, 45%, 45%)
HSVhsv(234, 62%, 66%)
CMYKcmyk(61.9%, 56%, 0%, 34.1%)
CIE-LABlab(35.62, 25.70, -51.96)
CIE-LCHlch(35.62, 57.97, 296.32°)
OKLaboklab(45.51% 0.0111 -0.1492)
OKLCHoklch(45.51% 0.15 274.2)
XYZxyz(11.6287, 8.8138, 38.1266)
Luminance0.0882 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404AA8 #A89E40
analogous
#407EA8 #404AA8 #6A40A8
triadic
#404AA8 #A8404A #4AA840
tetradic
#404AA8 #A8407E #A89E40 #40A86A
square
#404AA8 #A8407E #A89E40 #40A86A
split-complementary
#404AA8 #A86A40 #7EA840
monochromatic
#1E234F #2F367C #404AA8 #626BC3 #8E95D4

Accessibility & contrast

On white

7.60
#404AA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#404AA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404AA8
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404AA8#FFFFFF#000000##FFFFFF
##404AA81.007.602.767.60
#FFFFFF7.601.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058AB
Deuteranopia (green-blind)
#004FA6
Tritanopia (blue-blind)
#006071
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #404aa8;
/* rgb */ color: rgb(64, 74, 168);
/* oklch */ color: oklch(45.5% 0.150 274.2);
Tailwind
colors: {
  custom: {
    50: '#7f7cc2',
    500: '#404aa8',
    950: '#000000',
  },
}
SCSS
$custom: #404aa8;
$custom-light: #7f7cc2;
$custom-dark: #000000;
JSON
{
  "hex": "#404aa8",
  "rgb": {
    "r": 64,
    "g": 74,
    "b": 168
  },
  "hsl": {
    "h": 234.231,
    "s": 44.828,
    "l": 45.49
  },
  "oklch": {
    "l": 0.45508,
    "c": 0.14958,
    "h": 274.2
  },
  "luminance": 0.08815
}

Semantic roles & 50–950 ramp

primary
#404AA8
secondary
#BFB985
accent
#C853D5
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0912
muted
#7C7B81

Preview Lab

Preview with #404AA8

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

Preview Lab → · Contrast checker → · Palette generator →

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