#404CA2#404CA2

#404CA2 is a mid, vivid blue. Relative luminance 0.089; OKLCH L 45.4% C 0.138 H 273.6°. Best body text is #FFFFFF at 7.57:1 contrast (WCAG AA passes).

Color values

HEX#404CA2
RGBrgb(64, 76, 162)
HSLhsl(233, 43%, 44%)
HSVhsv(233, 60%, 64%)
CMYKcmyk(60.5%, 53.1%, 0%, 36.5%)
CIE-LABlab(35.73, 22.31, -48.21)
CIE-LCHlch(35.73, 53.12, 294.83°)
OKLaboklab(45.45% 0.0087 -0.1381)
OKLCHoklch(45.45% 0.138 273.6)
XYZxyz(11.2182, 8.8666, 35.2957)
Luminance0.0887 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404CA2 #A29640
analogous
#407DA2 #404CA2 #6540A2
triadic
#404CA2 #A2404C #4CA240
tetradic
#404CA2 #A2407D #A29640 #40A265
square
#404CA2 #A2407D #A29640 #40A265
split-complementary
#404CA2 #A26540 #7DA240
monochromatic
#1D234A #2F3776 #404CA2 #5F6BC0 #8B94D1

Accessibility & contrast

On white

7.57
#404CA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#404CA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404CA2
7.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404CA2#FFFFFF#000000##FFFFFF
##404CA21.007.572.777.57
#FFFFFF7.571.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1958A5
Deuteranopia (green-blind)
#0050A0
Tritanopia (blue-blind)
#00606F
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #404ca2;
/* rgb */ color: rgb(64, 76, 162);
/* oklch */ color: oklch(45.4% 0.138 273.6);
Tailwind
colors: {
  custom: {
    50: '#7e7dbe',
    500: '#404ca2',
    950: '#000000',
  },
}
SCSS
$custom: #404ca2;
$custom-light: #7e7dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#404ca2",
  "rgb": {
    "r": 64,
    "g": 76,
    "b": 162
  },
  "hsl": {
    "h": 232.653,
    "s": 43.363,
    "l": 44.314
  },
  "oklch": {
    "l": 0.45449,
    "c": 0.13836,
    "h": 273.6
  },
  "luminance": 0.08868
}

Semantic roles & 50–950 ramp

primary
#404CA2
secondary
#BCB582
accent
#C455D3
background
#F8F7FB
surface
#EFEEF7
border
#CAC9D0
text
#0B0912
muted
#7C7B81

Preview Lab

Preview with #404CA2

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

Preview Lab → · Contrast checker → · Palette generator →

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