#404CB2#404CB2

#404CB2 is a mid, vivid blue. Relative luminance 0.095; OKLCH L 46.7% C 0.161 H 273.4°. Best body text is #FFFFFF at 7.25:1 contrast (WCAG AA passes).

Color values

HEX#404CB2
RGBrgb(64, 76, 178)
HSLhsl(234, 47%, 47%)
HSVhsv(234, 64%, 70%)
CMYKcmyk(64%, 57.3%, 0%, 30.2%)
CIE-LABlab(36.88, 27.91, -55.87)
CIE-LCHlch(36.88, 62.45, 296.55°)
OKLaboklab(46.68% 0.0095 -0.1606)
OKLCHoklch(46.68% 0.161 273.4)
XYZxyz(12.7320, 9.4721, 43.2682)
Luminance0.0947 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404CB2 #B2A640
analogous
#4085B2 #404CB2 #6D40B2
triadic
#404CB2 #B2404C #4CB240
tetradic
#404CB2 #B24085 #B2A640 #40B26D
square
#404CB2 #B24085 #B2A640 #40B26D
split-complementary
#404CB2 #B26D40 #85B240
monochromatic
#202658 #303985 #404CB2 #6771C8 #949BD8

Accessibility & contrast

On white

7.25
#404CB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#404CB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404CB2
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404CB2#FFFFFF#000000##FFFFFF
##404CB21.007.252.897.25
#FFFFFF7.251.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB5
Deuteranopia (green-blind)
#0052B0
Tritanopia (blue-blind)
#006577
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #404cb2;
/* rgb */ color: rgb(64, 76, 178);
/* oklch */ color: oklch(46.7% 0.161 273.4);
Tailwind
colors: {
  custom: {
    50: '#817eca',
    500: '#404cb2',
    950: '#000000',
  },
}
SCSS
$custom: #404cb2;
$custom-light: #817eca;
$custom-dark: #000000;
JSON
{
  "hex": "#404cb2",
  "rgb": {
    "r": 64,
    "g": 76,
    "b": 178
  },
  "hsl": {
    "h": 233.684,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.46677,
    "c": 0.16092,
    "h": 273.4
  },
  "luminance": 0.09473
}

Semantic roles & 50–950 ramp

primary
#404CB2
secondary
#C4BE8A
accent
#C951D7
background
#F8F7FC
surface
#F0EEF8
border
#CBC9D1
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #404CB2

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

Preview Lab → · Contrast checker → · Palette generator →

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