#404FB1#404FB1

#404FB1 is a mid, vivid blue. Relative luminance 0.099; OKLCH L 47.2% C 0.156 H 272.4°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#404FB1
RGBrgb(64, 79, 177)
HSLhsl(232, 47%, 47%)
HSVhsv(232, 64%, 69%)
CMYKcmyk(63.8%, 55.4%, 0%, 30.6%)
CIE-LABlab(37.58, 25.62, -54.14)
CIE-LCHlch(37.58, 59.90, 295.33°)
OKLaboklab(47.18% 0.0066 -0.1555)
OKLCHoklch(47.18% 0.156 272.4)
XYZxyz(12.8435, 9.8552, 42.8119)
Luminance0.0986 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404FB1 #B1A240
analogous
#4088B1 #404FB1 #6940B1
triadic
#404FB1 #B1404F #4FB140
tetradic
#404FB1 #B14088 #B1A240 #40B169
square
#404FB1 #B14088 #B1A240 #40B169
split-complementary
#404FB1 #B16940 #88B140
monochromatic
#1F2757 #303B84 #404FB1 #6673C8 #939CD8

Accessibility & contrast

On white

7.07
#404FB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#404FB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404FB1
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404FB1#FFFFFF#000000##FFFFFF
##404FB11.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EB4
Deuteranopia (green-blind)
#0054AF
Tritanopia (blue-blind)
#006678
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #404fb1;
/* rgb */ color: rgb(64, 79, 177);
/* oklch */ color: oklch(47.2% 0.156 272.4);
Tailwind
colors: {
  custom: {
    50: '#8180c9',
    500: '#404fb1',
    950: '#000000',
  },
}
SCSS
$custom: #404fb1;
$custom-light: #8180c9;
$custom-dark: #000000;
JSON
{
  "hex": "#404fb1",
  "rgb": {
    "r": 64,
    "g": 79,
    "b": 177
  },
  "hsl": {
    "h": 232.035,
    "s": 46.888,
    "l": 47.255
  },
  "oklch": {
    "l": 0.4718,
    "c": 0.15565,
    "h": 272.4
  },
  "luminance": 0.09856
}

Semantic roles & 50–950 ramp

primary
#404FB1
secondary
#C3BC89
accent
#C551D7
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #404FB1

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

Preview Lab → · Contrast checker → · Palette generator →

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