#404FC4#404FC4

#404FC4 is a mid, vivid blue. Relative luminance 0.107; OKLCH L 48.7% C 0.182 H 272.2°. Best body text is #FFFFFF at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#404FC4
RGBrgb(64, 79, 196)
HSLhsl(233, 53%, 51%)
HSVhsv(233, 67%, 77%)
CMYKcmyk(67.3%, 59.7%, 0%, 23.1%)
CIE-LABlab(39.01, 32.30, -62.96)
CIE-LCHlch(39.01, 70.76, 297.16°)
OKLaboklab(48.7% 0.007 -0.1814)
OKLCHoklch(48.7% 0.182 272.2)
XYZxyz(14.8708, 10.6661, 53.4889)
Luminance0.1067 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404FC4 #C4B540
analogous
#4091C4 #404FC4 #7340C4
triadic
#404FC4 #C4404F #4FC440
tetradic
#404FC4 #C44091 #C4B540 #40C473
square
#404FC4 #C44091 #C4B540 #40C473
split-complementary
#404FC4 #C47340 #91C440
monochromatic
#202969 #2F3B98 #404FC4 #6F7AD2 #9EA5E1

Accessibility & contrast

On white

6.70
#404FC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#404FC4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #404FC4
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404FC4#FFFFFF#000000##FFFFFF
##404FC41.006.703.136.70
#FFFFFF6.701.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C8
Deuteranopia (green-blind)
#0056C2
Tritanopia (blue-blind)
#006C82
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #404fc4;
/* rgb */ color: rgb(64, 79, 196);
/* oklch */ color: oklch(48.7% 0.182 272.2);
Tailwind
colors: {
  custom: {
    50: '#8480d7',
    500: '#404fc4',
    950: '#000000',
  },
}
SCSS
$custom: #404fc4;
$custom-light: #8480d7;
$custom-dark: #000000;
JSON
{
  "hex": "#404fc4",
  "rgb": {
    "r": 64,
    "g": 79,
    "b": 196
  },
  "hsl": {
    "h": 233.182,
    "s": 52.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.48697,
    "c": 0.18158,
    "h": 272.2
  },
  "luminance": 0.10667
}

Semantic roles & 50–950 ramp

primary
#404FC4
secondary
#CDC693
accent
#CC4CDC
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0C0A14
muted
#7D7C83

Preview Lab

Preview with #404FC4

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

Preview Lab → · Contrast checker → · Palette generator →

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