#404FA6#404FA6

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

Color values

HEX#404FA6
RGBrgb(64, 79, 166)
HSLhsl(231, 44%, 45%)
HSVhsv(231, 61%, 65%)
CMYKcmyk(61.4%, 52.4%, 0%, 34.9%)
CIE-LABlab(36.81, 21.75, -48.86)
CIE-LCHlch(36.81, 53.48, 294.00°)
OKLaboklab(46.35% 0.0059 -0.14)
OKLCHoklch(46.35% 0.14 272.4)
XYZxyz(11.7910, 9.4342, 37.2686)
Luminance0.0944 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404FA6 #A69740
analogous
#4082A6 #404FA6 #6440A6
triadic
#404FA6 #A6404F #4FA640
tetradic
#404FA6 #A64082 #A69740 #40A664
square
#404FA6 #A64082 #A69740 #40A664
split-complementary
#404FA6 #A66440 #82A640
monochromatic
#1E254E #2F3A7A #404FA6 #616FC2 #8D98D3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##404FA6#FFFFFF#000000##FFFFFF
##404FA61.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)
#1D5BA9
Deuteranopia (green-blind)
#0052A4
Tritanopia (blue-blind)
#006373
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #404fa6;
/* rgb */ color: rgb(64, 79, 166);
/* oklch */ color: oklch(46.4% 0.140 272.4);
Tailwind
colors: {
  custom: {
    50: '#7f80c1',
    500: '#404fa6',
    950: '#000000',
  },
}
SCSS
$custom: #404fa6;
$custom-light: #7f80c1;
$custom-dark: #000000;
JSON
{
  "hex": "#404fa6",
  "rgb": {
    "r": 64,
    "g": 79,
    "b": 166
  },
  "hsl": {
    "h": 231.176,
    "s": 44.348,
    "l": 45.098
  },
  "oklch": {
    "l": 0.46352,
    "c": 0.1401,
    "h": 272.4
  },
  "luminance": 0.09435
}

Semantic roles & 50–950 ramp

primary
#404FA6
secondary
#BEB684
accent
#C154D4
background
#F8F7FB
surface
#EFEEF7
border
#CAC9D0
text
#0B0A12
muted
#7C7C81

Preview Lab

Preview with #404FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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