#404BC7#404BC7

#404BC7 is a mid, vivid blue. Relative luminance 0.102; OKLCH L 48.2% C 0.190 H 273.0°. Best body text is #FFFFFF at 6.89:1 contrast (WCAG AA passes).

Color values

HEX#404BC7
RGBrgb(64, 75, 199)
HSLhsl(235, 55%, 52%)
HSVhsv(235, 68%, 78%)
CMYKcmyk(67.8%, 62.3%, 0%, 22%)
CIE-LABlab(38.28, 35.86, -65.90)
CIE-LCHlch(38.28, 75.03, 298.55°)
OKLaboklab(48.23% 0.01 -0.1901)
OKLCHoklch(48.23% 0.19 273)
XYZxyz(14.9358, 10.2443, 55.2120)
Luminance0.1025 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404BC7 #C7BC40
analogous
#408FC7 #404BC7 #7940C7
triadic
#404BC7 #C7404B #4BC740
tetradic
#404BC7 #C7408F #C7BC40 #40C779
square
#404BC7 #C7408F #C7BC40 #40C779
split-complementary
#404BC7 #C77940 #8FC740
monochromatic
#20266D #2E379C #404BC7 #6F78D5 #9FA4E3

Accessibility & contrast

On white

6.89
#404BC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#404BC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #404BC7
6.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404BC7#FFFFFF#000000##FFFFFF
##404BC71.006.893.056.89
#FFFFFF6.891.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CB
Deuteranopia (green-blind)
#0054C5
Tritanopia (blue-blind)
#006B82
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #404bc7;
/* rgb */ color: rgb(64, 75, 199);
/* oklch */ color: oklch(48.2% 0.190 273.0);
Tailwind
colors: {
  custom: {
    50: '#857dd9',
    500: '#404bc7',
    950: '#000000',
  },
}
SCSS
$custom: #404bc7;
$custom-light: #857dd9;
$custom-dark: #000000;
JSON
{
  "hex": "#404bc7",
  "rgb": {
    "r": 64,
    "g": 75,
    "b": 199
  },
  "hsl": {
    "h": 235.111,
    "s": 54.656,
    "l": 51.569
  },
  "oklch": {
    "l": 0.48229,
    "c": 0.19039,
    "h": 273
  },
  "luminance": 0.10246
}

Semantic roles & 50–950 ramp

primary
#404BC7
secondary
#CFCA94
accent
#D24ADE
background
#F8F7FD
surface
#F0EEFB
border
#CBC9D4
text
#0C0915
muted
#7D7B83

Preview Lab

Preview with #404BC7

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

Preview Lab → · Contrast checker → · Palette generator →

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