#404FA7#404FA7

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

Color values

HEX#404FA7
RGBrgb(64, 79, 167)
HSLhsl(231, 45%, 45%)
HSVhsv(231, 62%, 65%)
CMYKcmyk(61.7%, 52.7%, 0%, 34.5%)
CIE-LABlab(36.88, 22.10, -49.34)
CIE-LCHlch(36.88, 54.07, 294.13°)
OKLaboklab(46.43% 0.006 -0.1414)
OKLCHoklch(46.43% 0.142 272.4)
XYZxyz(11.8831, 9.4710, 37.7536)
Luminance0.0947 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404FA7 #A79840
analogous
#4082A7 #404FA7 #6440A7
triadic
#404FA7 #A7404F #4FA740
tetradic
#404FA7 #A74082 #A79840 #40A764
square
#404FA7 #A74082 #A79840 #40A764
split-complementary
#404FA7 #A76440 #82A740
monochromatic
#1E254F #2F3A7B #404FA7 #6270C3 #8E98D4

Accessibility & contrast

On white

7.26
#404FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #404FA7
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404FA7#FFFFFF#000000##FFFFFF
##404FA71.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B5BAA
Deuteranopia (green-blind)
#0052A5
Tritanopia (blue-blind)
#006373
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #404fa7;
/* rgb */ color: rgb(64, 79, 167);
/* oklch */ color: oklch(46.4% 0.142 272.4);
Tailwind
colors: {
  custom: {
    50: '#7f80c2',
    500: '#404fa7',
    950: '#000000',
  },
}
SCSS
$custom: #404fa7;
$custom-light: #7f80c2;
$custom-dark: #000000;
JSON
{
  "hex": "#404fa7",
  "rgb": {
    "r": 64,
    "g": 79,
    "b": 167
  },
  "hsl": {
    "h": 231.262,
    "s": 44.589,
    "l": 45.294
  },
  "oklch": {
    "l": 0.46425,
    "c": 0.14153,
    "h": 272.4
  },
  "luminance": 0.09472
}

Semantic roles & 50–950 ramp

primary
#404FA7
secondary
#BFB684
accent
#C254D4
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0A12
muted
#7C7C81

Preview Lab

Preview with #404FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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