#404AC0#404AC0

#404AC0 is a mid, vivid blue. Relative luminance 0.098; OKLCH L 47.5% C 0.182 H 273.5°. Best body text is #FFFFFF at 7.10:1 contrast (WCAG AA passes).

Color values

HEX#404AC0
RGBrgb(64, 74, 192)
HSLhsl(235, 50%, 50%)
HSVhsv(235, 67%, 75%)
CMYKcmyk(66.7%, 61.5%, 0%, 24.7%)
CIE-LABlab(37.47, 34.07, -63.15)
CIE-LCHlch(37.47, 71.75, 298.35°)
OKLaboklab(47.46% 0.0111 -0.182)
OKLCHoklch(47.46% 0.182 273.5)
XYZxyz(14.0744, 9.7920, 51.0073)
Luminance0.0979 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404AC0 #C0B640
analogous
#408AC0 #404AC0 #7640C0
triadic
#404AC0 #C0404A #4AC040
tetradic
#404AC0 #C0408A #C0B640 #40C076
square
#404AC0 #C0408A #C0B640 #40C076
split-complementary
#404AC0 #C07640 #8AC040
monochromatic
#212664 #303892 #404AC0 #6E76CF #9CA1DE

Accessibility & contrast

On white

7.10
#404AC0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#404AC0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404AC0
7.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404AC0#FFFFFF#000000##FFFFFF
##404AC01.007.102.967.10
#FFFFFF7.101.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC4
Deuteranopia (green-blind)
#0052BE
Tritanopia (blue-blind)
#00687E
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #404ac0;
/* rgb */ color: rgb(64, 74, 192);
/* oklch */ color: oklch(47.5% 0.182 273.5);
Tailwind
colors: {
  custom: {
    50: '#847cd4',
    500: '#404ac0',
    950: '#000000',
  },
}
SCSS
$custom: #404ac0;
$custom-light: #847cd4;
$custom-dark: #000000;
JSON
{
  "hex": "#404ac0",
  "rgb": {
    "r": 64,
    "g": 74,
    "b": 192
  },
  "hsl": {
    "h": 235.313,
    "s": 50.394,
    "l": 50.196
  },
  "oklch": {
    "l": 0.47455,
    "c": 0.18238,
    "h": 273.5
  },
  "luminance": 0.09793
}

Semantic roles & 50–950 ramp

primary
#404AC0
secondary
#CBC691
accent
#CF4EDA
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0C0914
muted
#7D7B83

Preview Lab

Preview with #404AC0

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

Preview Lab → · Contrast checker → · Palette generator →

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