#404FC7#404FC7

#404FC7 is a mid, vivid blue. Relative luminance 0.108; OKLCH L 48.9% C 0.186 H 272.1°. Best body text is #FFFFFF at 6.64:1 contrast (WCAG AA passes).

Color values

HEX#404FC7
RGBrgb(64, 79, 199)
HSLhsl(233, 55%, 52%)
HSVhsv(233, 68%, 78%)
CMYKcmyk(67.8%, 60.3%, 0%, 22%)
CIE-LABlab(39.25, 33.35, -64.32)
CIE-LCHlch(39.25, 72.45, 297.41°)
OKLaboklab(48.95% 0.0069 -0.1854)
OKLCHoklch(48.95% 0.186 272.1)
XYZxyz(15.2157, 10.8040, 55.3053)
Luminance0.1080 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404FC7 #C7B840
analogous
#4093C7 #404FC7 #7540C7
triadic
#404FC7 #C7404F #4FC740
tetradic
#404FC7 #C74093 #C7B840 #40C775
square
#404FC7 #C74093 #C7B840 #40C775
split-complementary
#404FC7 #C77540 #93C740
monochromatic
#20286D #2E3A9C #404FC7 #6F7BD5 #9FA6E3

Accessibility & contrast

On white

6.64
#404FC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#404FC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #404FC7
6.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404FC7#FFFFFF#000000##FFFFFF
##404FC71.006.643.166.64
#FFFFFF6.641.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063CB
Deuteranopia (green-blind)
#0056C5
Tritanopia (blue-blind)
#006D83
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #404fc7;
/* rgb */ color: rgb(64, 79, 199);
/* oklch */ color: oklch(48.9% 0.186 272.1);
Tailwind
colors: {
  custom: {
    50: '#8580d9',
    500: '#404fc7',
    950: '#000000',
  },
}
SCSS
$custom: #404fc7;
$custom-light: #8580d9;
$custom-dark: #000000;
JSON
{
  "hex": "#404fc7",
  "rgb": {
    "r": 64,
    "g": 79,
    "b": 199
  },
  "hsl": {
    "h": 233.333,
    "s": 54.656,
    "l": 51.569
  },
  "oklch": {
    "l": 0.48945,
    "c": 0.18557,
    "h": 272.1
  },
  "luminance": 0.10805
}

Semantic roles & 50–950 ramp

primary
#404FC7
secondary
#CFC894
accent
#CE4ADE
background
#F8F7FD
surface
#F0EEFB
border
#CBC9D4
text
#0C0A15
muted
#7D7C83

Preview Lab

Preview with #404FC7

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

Preview Lab → · Contrast checker → · Palette generator →

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