#404DC7#404DC7

#404DC7 is a mid, vivid blue. Relative luminance 0.105; OKLCH L 48.6% C 0.188 H 272.6°. Best body text is #FFFFFF at 6.77:1 contrast (WCAG AA passes).

Color values

HEX#404DC7
RGBrgb(64, 77, 199)
HSLhsl(234, 55%, 52%)
HSVhsv(234, 68%, 78%)
CMYKcmyk(67.8%, 61.3%, 0%, 22%)
CIE-LABlab(38.76, 34.61, -65.12)
CIE-LCHlch(38.76, 73.74, 297.99°)
OKLaboklab(48.58% 0.0085 -0.1878)
OKLCHoklch(48.58% 0.188 272.6)
XYZxyz(15.0736, 10.5199, 55.2579)
Luminance0.1052 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404DC7 #C7BA40
analogous
#4091C7 #404DC7 #7740C7
triadic
#404DC7 #C7404D #4DC740
tetradic
#404DC7 #C74091 #C7BA40 #40C777
square
#404DC7 #C74091 #C7BA40 #40C777
split-complementary
#404DC7 #C77740 #91C740
monochromatic
#20276D #2E389C #404DC7 #6F79D5 #9FA5E3

Accessibility & contrast

On white

6.77
#404DC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#404DC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #404DC7
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404DC7#FFFFFF#000000##FFFFFF
##404DC71.006.773.106.77
#FFFFFF6.771.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062CB
Deuteranopia (green-blind)
#0055C5
Tritanopia (blue-blind)
#006C83
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #404dc7;
/* rgb */ color: rgb(64, 77, 199);
/* oklch */ color: oklch(48.6% 0.188 272.6);
Tailwind
colors: {
  custom: {
    50: '#857fd9',
    500: '#404dc7',
    950: '#000000',
  },
}
SCSS
$custom: #404dc7;
$custom-light: #857fd9;
$custom-dark: #000000;
JSON
{
  "hex": "#404dc7",
  "rgb": {
    "r": 64,
    "g": 77,
    "b": 199
  },
  "hsl": {
    "h": 234.222,
    "s": 54.656,
    "l": 51.569
  },
  "oklch": {
    "l": 0.48584,
    "c": 0.18799,
    "h": 272.6
  },
  "luminance": 0.10521
}

Semantic roles & 50–950 ramp

primary
#404DC7
secondary
#CFC994
accent
#D04ADE
background
#F8F7FD
surface
#F0EEFB
border
#CBC9D4
text
#0C0A15
muted
#7D7C83

Preview Lab

Preview with #404DC7

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

Preview Lab → · Contrast checker → · Palette generator →

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