#404FB7#404FB7

#404FB7 is a mid, vivid blue. Relative luminance 0.101; OKLCH L 47.6% C 0.164 H 272.4°. Best body text is #FFFFFF at 6.95:1 contrast (WCAG AA passes).

Color values

HEX#404FB7
RGBrgb(64, 79, 183)
HSLhsl(232, 48%, 48%)
HSVhsv(232, 65%, 72%)
CMYKcmyk(65%, 56.8%, 0%, 28.2%)
CIE-LABlab(38.02, 27.74, -56.97)
CIE-LCHlch(38.02, 63.36, 295.96°)
OKLaboklab(47.65% 0.0069 -0.1638)
OKLCHoklch(47.65% 0.164 272.4)
XYZxyz(13.4547, 10.0997, 46.0309)
Luminance0.1010 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404FB7 #B7A840
analogous
#408AB7 #404FB7 #6C40B7
triadic
#404FB7 #B7404F #4FB740
tetradic
#404FB7 #B7408A #B7A840 #40B76C
square
#404FB7 #B7408A #B7A840 #40B76C
split-complementary
#404FB7 #B76C40 #8AB740
monochromatic
#20285C #303B8A #404FB7 #6976CB #979FDB

Accessibility & contrast

On white

6.95
#404FB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#404FB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #404FB7
6.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404FB7#FFFFFF#000000##FFFFFF
##404FB71.006.953.026.95
#FFFFFF6.951.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBB
Deuteranopia (green-blind)
#0054B5
Tritanopia (blue-blind)
#00687B
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #404fb7;
/* rgb */ color: rgb(64, 79, 183);
/* oklch */ color: oklch(47.6% 0.164 272.4);
Tailwind
colors: {
  custom: {
    50: '#8280cd',
    500: '#404fb7',
    950: '#000000',
  },
}
SCSS
$custom: #404fb7;
$custom-light: #8280cd;
$custom-dark: #000000;
JSON
{
  "hex": "#404fb7",
  "rgb": {
    "r": 64,
    "g": 79,
    "b": 183
  },
  "hsl": {
    "h": 232.437,
    "s": 48.178,
    "l": 48.431
  },
  "oklch": {
    "l": 0.47647,
    "c": 0.16397,
    "h": 272.4
  },
  "luminance": 0.10101
}

Semantic roles & 50–950 ramp

primary
#404FB7
secondary
#C6BF8D
accent
#C750D8
background
#F8F7FC
surface
#F0EEF9
border
#CBC9D2
text
#0C0A14
muted
#7D7C82

Preview Lab

Preview with #404FB7

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

Preview Lab → · Contrast checker → · Palette generator →

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