#404AB2#404AB2

#404AB2 is a mid, vivid blue. Relative luminance 0.092; OKLCH L 46.3% C 0.163 H 274.0°. Best body text is #FFFFFF at 7.39:1 contrast (WCAG AA passes).

Color values

HEX#404AB2
RGBrgb(64, 74, 178)
HSLhsl(235, 47%, 47%)
HSVhsv(235, 64%, 70%)
CMYKcmyk(64%, 58.4%, 0%, 30.2%)
CIE-LABlab(36.37, 29.20, -56.70)
CIE-LCHlch(36.37, 63.77, 297.25°)
OKLaboklab(46.3% 0.0113 -0.1631)
OKLCHoklch(46.3% 0.163 274)
XYZxyz(12.5964, 9.2008, 43.2230)
Luminance0.0920 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404AB2 #B2A840
analogous
#4083B2 #404AB2 #6F40B2
triadic
#404AB2 #B2404A #4AB240
tetradic
#404AB2 #B24083 #B2A840 #40B26F
square
#404AB2 #B24083 #B2A840 #40B26F
split-complementary
#404AB2 #B26F40 #83B240
monochromatic
#202558 #303785 #404AB2 #676FC8 #949AD8

Accessibility & contrast

On white

7.39
#404AB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#404AB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404AB2
7.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404AB2#FFFFFF#000000##FFFFFF
##404AB21.007.392.847.39
#FFFFFF7.391.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB5
Deuteranopia (green-blind)
#0051B0
Tritanopia (blue-blind)
#006377
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #404ab2;
/* rgb */ color: rgb(64, 74, 178);
/* oklch */ color: oklch(46.3% 0.163 274.0);
Tailwind
colors: {
  custom: {
    50: '#817cca',
    500: '#404ab2',
    950: '#000000',
  },
}
SCSS
$custom: #404ab2;
$custom-light: #817cca;
$custom-dark: #000000;
JSON
{
  "hex": "#404ab2",
  "rgb": {
    "r": 64,
    "g": 74,
    "b": 178
  },
  "hsl": {
    "h": 234.737,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.46298,
    "c": 0.16348,
    "h": 274
  },
  "luminance": 0.09202
}

Semantic roles & 50–950 ramp

primary
#404AB2
secondary
#C4BF8A
accent
#CB51D7
background
#F8F7FC
surface
#F0EEF8
border
#CBC9D1
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #404AB2

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

Preview Lab → · Contrast checker → · Palette generator →

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