#404EB2#404EB2

#404EB2 is a mid, vivid blue. Relative luminance 0.098; OKLCH L 47.1% C 0.158 H 272.8°. Best body text is #FFFFFF at 7.12:1 contrast (WCAG AA passes).

Color values

HEX#404EB2
RGBrgb(64, 78, 178)
HSLhsl(233, 47%, 47%)
HSVhsv(233, 64%, 70%)
CMYKcmyk(64%, 56.2%, 0%, 30.2%)
CIE-LABlab(37.39, 26.62, -55.03)
CIE-LCHlch(37.39, 61.13, 295.81°)
OKLaboklab(47.06% 0.0076 -0.1582)
OKLCHoklch(47.06% 0.158 272.8)
XYZxyz(12.8719, 9.7520, 43.3148)
Luminance0.0975 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404EB2 #B2A440
analogous
#4087B2 #404EB2 #6B40B2
triadic
#404EB2 #B2404E #4EB240
tetradic
#404EB2 #B24087 #B2A440 #40B26B
square
#404EB2 #B24087 #B2A440 #40B26B
split-complementary
#404EB2 #B26B40 #87B240
monochromatic
#202758 #303A85 #404EB2 #6773C8 #949CD8

Accessibility & contrast

On white

7.12
#404EB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#404EB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404EB2
7.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404EB2#FFFFFF#000000##FFFFFF
##404EB21.007.122.957.12
#FFFFFF7.121.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB5
Deuteranopia (green-blind)
#0053B0
Tritanopia (blue-blind)
#006678
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #404eb2;
/* rgb */ color: rgb(64, 78, 178);
/* oklch */ color: oklch(47.1% 0.158 272.8);
Tailwind
colors: {
  custom: {
    50: '#817fca',
    500: '#404eb2',
    950: '#000000',
  },
}
SCSS
$custom: #404eb2;
$custom-light: #817fca;
$custom-dark: #000000;
JSON
{
  "hex": "#404eb2",
  "rgb": {
    "r": 64,
    "g": 78,
    "b": 178
  },
  "hsl": {
    "h": 232.632,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.47062,
    "c": 0.15834,
    "h": 272.8
  },
  "luminance": 0.09753
}

Semantic roles & 50–950 ramp

primary
#404EB2
secondary
#C4BD8A
accent
#C651D7
background
#F8F7FC
surface
#F0EEF8
border
#CBC9D1
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #404EB2

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

Preview Lab → · Contrast checker → · Palette generator →

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