#404AC2#404AC2

#404AC2 is a mid, vivid blue. Relative luminance 0.099; OKLCH L 47.6% C 0.185 H 273.4°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#404AC2
RGBrgb(64, 74, 194)
HSLhsl(235, 52%, 51%)
HSVhsv(235, 67%, 76%)
CMYKcmyk(67%, 61.9%, 0%, 23.9%)
CIE-LABlab(37.63, 34.76, -64.05)
CIE-LCHlch(37.63, 72.87, 298.49°)
OKLaboklab(47.63% 0.011 -0.1847)
OKLCHoklch(47.63% 0.185 273.4)
XYZxyz(14.2975, 9.8813, 52.1823)
Luminance0.0988 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404AC2 #C2B840
analogous
#408BC2 #404AC2 #7740C2
triadic
#404AC2 #C2404A #4AC240
tetradic
#404AC2 #C2408B #C2B840 #40C277
square
#404AC2 #C2408B #C2B840 #40C277
split-complementary
#404AC2 #C27740 #8BC240
monochromatic
#212667 #303795 #404AC2 #6E76D1 #9DA2E0

Accessibility & contrast

On white

7.06
#404AC2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#404AC2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404AC2
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404AC2#FFFFFF#000000##FFFFFF
##404AC21.007.062.987.06
#FFFFFF7.061.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC6
Deuteranopia (green-blind)
#0053C0
Tritanopia (blue-blind)
#00687F
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #404ac2;
/* rgb */ color: rgb(64, 74, 194);
/* oklch */ color: oklch(47.6% 0.185 273.4);
Tailwind
colors: {
  custom: {
    50: '#847cd5',
    500: '#404ac2',
    950: '#000000',
  },
}
SCSS
$custom: #404ac2;
$custom-light: #847cd5;
$custom-dark: #000000;
JSON
{
  "hex": "#404ac2",
  "rgb": {
    "r": 64,
    "g": 74,
    "b": 194
  },
  "hsl": {
    "h": 235.385,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.47625,
    "c": 0.18503,
    "h": 273.4
  },
  "luminance": 0.09883
}

Semantic roles & 50–950 ramp

primary
#404AC2
secondary
#CCC792
accent
#D04DDB
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0C0914
muted
#7D7B83

Preview Lab

Preview with #404AC2

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

Preview Lab → · Contrast checker → · Palette generator →

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