#404FC5#404FC5

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

Color values

HEX#404FC5
RGBrgb(64, 79, 197)
HSLhsl(233, 53%, 51%)
HSVhsv(233, 68%, 77%)
CMYKcmyk(67.5%, 59.9%, 0%, 22.7%)
CIE-LABlab(39.09, 32.65, -63.41)
CIE-LCHlch(39.09, 71.33, 297.24°)
OKLaboklab(48.78% 0.0069 -0.1828)
OKLCHoklch(48.78% 0.183 272.2)
XYZxyz(14.9850, 10.7118, 54.0904)
Luminance0.1071 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404FC5 #C5B640
analogous
#4091C5 #404FC5 #7340C5
triadic
#404FC5 #C5404F #4FC540
tetradic
#404FC5 #C54091 #C5B640 #40C573
square
#404FC5 #C54091 #C5B640 #40C573
split-complementary
#404FC5 #C57340 #91C540
monochromatic
#20296A #2F3B99 #404FC5 #6F7AD3 #9EA6E2

Accessibility & contrast

On white

6.68
#404FC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#404FC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #404FC5
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404FC5#FFFFFF#000000##FFFFFF
##404FC51.006.683.146.68
#FFFFFF6.681.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #404fc5;
/* rgb */ color: rgb(64, 79, 197);
/* oklch */ color: oklch(48.8% 0.183 272.2);
Tailwind
colors: {
  custom: {
    50: '#8580d7',
    500: '#404fc5',
    950: '#000000',
  },
}
SCSS
$custom: #404fc5;
$custom-light: #8580d7;
$custom-dark: #000000;
JSON
{
  "hex": "#404fc5",
  "rgb": {
    "r": 64,
    "g": 79,
    "b": 197
  },
  "hsl": {
    "h": 233.233,
    "s": 53.414,
    "l": 51.176
  },
  "oklch": {
    "l": 0.48779,
    "c": 0.18291,
    "h": 272.2
  },
  "luminance": 0.10713
}

Semantic roles & 50–950 ramp

primary
#404FC5
secondary
#CEC793
accent
#CC4BDD
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0C0A15
muted
#7D7C83

Preview Lab

Preview with #404FC5

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

Preview Lab → · Contrast checker → · Palette generator →

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