#404CA7#404CA7

#404CA7 is a mid, vivid blue. Relative luminance 0.090; OKLCH L 45.8% C 0.146 H 273.6°. Best body text is #FFFFFF at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#404CA7
RGBrgb(64, 76, 167)
HSLhsl(233, 45%, 45%)
HSVhsv(233, 62%, 65%)
CMYKcmyk(61.7%, 54.5%, 0%, 34.5%)
CIE-LABlab(36.08, 24.05, -50.63)
CIE-LCHlch(36.08, 56.06, 295.41°)
OKLaboklab(45.82% 0.009 -0.1452)
OKLCHoklch(45.82% 0.146 273.6)
XYZxyz(11.6715, 9.0480, 37.6831)
Luminance0.0905 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404CA7 #A79B40
analogous
#407FA7 #404CA7 #6840A7
triadic
#404CA7 #A7404C #4CA740
tetradic
#404CA7 #A7407F #A79B40 #40A768
square
#404CA7 #A7407F #A79B40 #40A768
split-complementary
#404CA7 #A76840 #7FA740
monochromatic
#1E244F #2F387B #404CA7 #626DC3 #8E96D4

Accessibility & contrast

On white

7.47
#404CA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#404CA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404CA7
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404CA7#FFFFFF#000000##FFFFFF
##404CA71.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F59AA
Deuteranopia (green-blind)
#0051A5
Tritanopia (blue-blind)
#006172
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #404ca7;
/* rgb */ color: rgb(64, 76, 167);
/* oklch */ color: oklch(45.8% 0.146 273.6);
Tailwind
colors: {
  custom: {
    50: '#7f7dc2',
    500: '#404ca7',
    950: '#000000',
  },
}
SCSS
$custom: #404ca7;
$custom-light: #7f7dc2;
$custom-dark: #000000;
JSON
{
  "hex": "#404ca7",
  "rgb": {
    "r": 64,
    "g": 76,
    "b": 167
  },
  "hsl": {
    "h": 233.01,
    "s": 44.589,
    "l": 45.294
  },
  "oklch": {
    "l": 0.45824,
    "c": 0.14551,
    "h": 273.6
  },
  "luminance": 0.09049
}

Semantic roles & 50–950 ramp

primary
#404CA7
secondary
#BFB884
accent
#C554D4
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0912
muted
#7C7B81

Preview Lab

Preview with #404CA7

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

Preview Lab → · Contrast checker → · Palette generator →

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