#404BA2#404BA2

#404BA2 is a mid, vivid blue. Relative luminance 0.087; OKLCH L 45.2% C 0.140 H 274.0°. Best body text is #FFFFFF at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#404BA2
RGBrgb(64, 75, 162)
HSLhsl(233, 43%, 44%)
HSVhsv(233, 60%, 64%)
CMYKcmyk(60.5%, 53.7%, 0%, 36.5%)
CIE-LABlab(35.46, 22.96, -48.64)
CIE-LCHlch(35.46, 53.78, 295.27°)
OKLaboklab(45.25% 0.0098 -0.1394)
OKLCHoklch(45.25% 0.14 274)
XYZxyz(11.1499, 8.7299, 35.2729)
Luminance0.0873 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404BA2 #A29740
analogous
#407CA2 #404BA2 #6640A2
triadic
#404BA2 #A2404B #4BA240
tetradic
#404BA2 #A2407C #A29740 #40A266
square
#404BA2 #A2407C #A29740 #40A266
split-complementary
#404BA2 #A26640 #7CA240
monochromatic
#1D224A #2F3776 #404BA2 #5F6AC0 #8B93D1

Accessibility & contrast

On white

7.65
#404BA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#404BA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404BA2
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404BA2#FFFFFF#000000##FFFFFF
##404BA21.007.652.757.65
#FFFFFF7.651.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1658A5
Deuteranopia (green-blind)
#004FA0
Tritanopia (blue-blind)
#005F6F
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #404ba2;
/* rgb */ color: rgb(64, 75, 162);
/* oklch */ color: oklch(45.2% 0.140 274.0);
Tailwind
colors: {
  custom: {
    50: '#7e7dbe',
    500: '#404ba2',
    950: '#000000',
  },
}
SCSS
$custom: #404ba2;
$custom-light: #7e7dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#404ba2",
  "rgb": {
    "r": 64,
    "g": 75,
    "b": 162
  },
  "hsl": {
    "h": 233.265,
    "s": 43.363,
    "l": 44.314
  },
  "oklch": {
    "l": 0.45249,
    "c": 0.13971,
    "h": 274
  },
  "luminance": 0.08731
}

Semantic roles & 50–950 ramp

primary
#404BA2
secondary
#BCB682
accent
#C555D3
background
#F8F7FB
surface
#EFEEF7
border
#CAC9D0
text
#0B0912
muted
#7C7B81

Preview Lab

Preview with #404BA2

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

Preview Lab → · Contrast checker → · Palette generator →

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