#404EA2#404EA2

#404EA2 is a mid, vivid blue. Relative luminance 0.091; OKLCH L 45.9% C 0.136 H 272.8°. Best body text is #FFFFFF at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#404EA2
RGBrgb(64, 78, 162)
HSLhsl(231, 43%, 44%)
HSVhsv(231, 60%, 64%)
CMYKcmyk(60.5%, 51.9%, 0%, 36.5%)
CIE-LABlab(36.26, 21.00, -47.34)
CIE-LCHlch(36.26, 51.79, 293.92°)
OKLaboklab(45.86% 0.0066 -0.1355)
OKLCHoklch(45.86% 0.136 272.8)
XYZxyz(11.3582, 9.1465, 35.3423)
Luminance0.0915 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404EA2 #A29440
analogous
#407FA2 #404EA2 #6340A2
triadic
#404EA2 #A2404E #4EA240
tetradic
#404EA2 #A2407F #A29440 #40A263
square
#404EA2 #A2407F #A29440 #40A263
split-complementary
#404EA2 #A26340 #7FA240
monochromatic
#1D244A #2F3976 #404EA2 #5F6DC0 #8B95D1

Accessibility & contrast

On white

7.42
#404EA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#404EA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404EA2
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404EA2#FFFFFF#000000##FFFFFF
##404EA21.007.422.837.42
#FFFFFF7.421.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F5AA5
Deuteranopia (green-blind)
#0751A0
Tritanopia (blue-blind)
#006170
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #404ea2;
/* rgb */ color: rgb(64, 78, 162);
/* oklch */ color: oklch(45.9% 0.136 272.8);
Tailwind
colors: {
  custom: {
    50: '#7e7fbe',
    500: '#404ea2',
    950: '#000000',
  },
}
SCSS
$custom: #404ea2;
$custom-light: #7e7fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#404ea2",
  "rgb": {
    "r": 64,
    "g": 78,
    "b": 162
  },
  "hsl": {
    "h": 231.429,
    "s": 43.363,
    "l": 44.314
  },
  "oklch": {
    "l": 0.45855,
    "c": 0.13567,
    "h": 272.8
  },
  "luminance": 0.09147
}

Semantic roles & 50–950 ramp

primary
#404EA2
secondary
#BCB482
accent
#C155D3
background
#F8F7FB
surface
#EFEEF7
border
#CAC9D0
text
#0B0A12
muted
#7C7C81

Preview Lab

Preview with #404EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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