#404CC7#404CC7

#404CC7 is a mid, vivid blue. Relative luminance 0.104; OKLCH L 48.4% C 0.189 H 272.8°. Best body text is #FFFFFF at 6.83:1 contrast (WCAG AA passes).

Color values

HEX#404CC7
RGBrgb(64, 76, 199)
HSLhsl(235, 55%, 52%)
HSVhsv(235, 68%, 78%)
CMYKcmyk(67.8%, 61.8%, 0%, 22%)
CIE-LABlab(38.52, 35.24, -65.51)
CIE-LCHlch(38.52, 74.39, 298.27°)
OKLaboklab(48.41% 0.0092 -0.189)
OKLCHoklch(48.41% 0.189 272.8)
XYZxyz(15.0041, 10.3810, 55.2348)
Luminance0.1038 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404CC7 #C7BB40
analogous
#4090C7 #404CC7 #7840C7
triadic
#404CC7 #C7404C #4CC740
tetradic
#404CC7 #C74090 #C7BB40 #40C778
square
#404CC7 #C74090 #C7BB40 #40C778
split-complementary
#404CC7 #C77840 #90C740
monochromatic
#20276D #2E389C #404CC7 #6F78D5 #9FA5E3

Accessibility & contrast

On white

6.83
#404CC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#404CC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #404CC7
6.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404CC7#FFFFFF#000000##FFFFFF
##404CC71.006.833.086.83
#FFFFFF6.831.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.831.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #404cc7;
/* rgb */ color: rgb(64, 76, 199);
/* oklch */ color: oklch(48.4% 0.189 272.8);
Tailwind
colors: {
  custom: {
    50: '#857ed9',
    500: '#404cc7',
    950: '#000000',
  },
}
SCSS
$custom: #404cc7;
$custom-light: #857ed9;
$custom-dark: #000000;
JSON
{
  "hex": "#404cc7",
  "rgb": {
    "r": 64,
    "g": 76,
    "b": 199
  },
  "hsl": {
    "h": 234.667,
    "s": 54.656,
    "l": 51.569
  },
  "oklch": {
    "l": 0.48406,
    "c": 0.1892,
    "h": 272.8
  },
  "luminance": 0.10382
}

Semantic roles & 50–950 ramp

primary
#404CC7
secondary
#CFCA94
accent
#D14ADE
background
#F8F7FD
surface
#F0EEFB
border
#CBC9D4
text
#0C0A15
muted
#7D7C83

Preview Lab

Preview with #404CC7

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

Preview Lab → · Contrast checker → · Palette generator →

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