#404DC0#404DC0

#404DC0 is a mid, vivid blue. Relative luminance 0.102; OKLCH L 48.0% C 0.179 H 272.8°. Best body text is #FFFFFF at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#404DC0
RGBrgb(64, 77, 192)
HSLhsl(234, 50%, 50%)
HSVhsv(234, 67%, 75%)
CMYKcmyk(66.7%, 59.9%, 0%, 24.7%)
CIE-LABlab(38.20, 32.17, -61.95)
CIE-LCHlch(38.20, 69.80, 297.44°)
OKLaboklab(48% 0.0086 -0.1785)
OKLCHoklch(48% 0.179 272.8)
XYZxyz(14.2795, 10.2022, 51.0757)
Luminance0.1020 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404DC0 #C0B340
analogous
#408DC0 #404DC0 #7340C0
triadic
#404DC0 #C0404D #4DC040
tetradic
#404DC0 #C0408D #C0B340 #40C073
square
#404DC0 #C0408D #C0B340 #40C073
split-complementary
#404DC0 #C07340 #8DC040
monochromatic
#212864 #303A92 #404DC0 #6E78CF #9CA3DE

Accessibility & contrast

On white

6.91
#404DC0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#404DC0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #404DC0
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404DC0#FFFFFF#000000##FFFFFF
##404DC01.006.913.046.91
#FFFFFF6.911.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C4
Deuteranopia (green-blind)
#0054BE
Tritanopia (blue-blind)
#006A7F
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #404dc0;
/* rgb */ color: rgb(64, 77, 192);
/* oklch */ color: oklch(48.0% 0.179 272.8);
Tailwind
colors: {
  custom: {
    50: '#847ed4',
    500: '#404dc0',
    950: '#000000',
  },
}
SCSS
$custom: #404dc0;
$custom-light: #847ed4;
$custom-dark: #000000;
JSON
{
  "hex": "#404dc0",
  "rgb": {
    "r": 64,
    "g": 77,
    "b": 192
  },
  "hsl": {
    "h": 233.906,
    "s": 50.394,
    "l": 50.196
  },
  "oklch": {
    "l": 0.47999,
    "c": 0.1787,
    "h": 272.8
  },
  "luminance": 0.10204
}

Semantic roles & 50–950 ramp

primary
#404DC0
secondary
#CBC591
accent
#CC4EDA
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0C0A14
muted
#7D7C83

Preview Lab

Preview with #404DC0

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

Preview Lab → · Contrast checker → · Palette generator →

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