#404BC2#404BC2

#404BC2 is a mid, vivid blue. Relative luminance 0.100; OKLCH L 47.8% C 0.184 H 273.2°. Best body text is #FFFFFF at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#404BC2
RGBrgb(64, 75, 194)
HSLhsl(235, 52%, 51%)
HSVhsv(235, 67%, 76%)
CMYKcmyk(67%, 61.3%, 0%, 23.9%)
CIE-LABlab(37.87, 34.13, -63.65)
CIE-LCHlch(37.87, 72.23, 298.20°)
OKLaboklab(47.8% 0.0102 -0.1835)
OKLCHoklch(47.8% 0.184 273.2)
XYZxyz(14.3648, 10.0159, 52.2047)
Luminance0.1002 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404BC2 #C2B740
analogous
#408CC2 #404BC2 #7640C2
triadic
#404BC2 #C2404B #4BC240
tetradic
#404BC2 #C2408C #C2B740 #40C276
square
#404BC2 #C2408C #C2B740 #40C276
split-complementary
#404BC2 #C27640 #8CC240
monochromatic
#212767 #303895 #404BC2 #6E77D1 #9DA2E0

Accessibility & contrast

On white

6.99
#404BC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.00
#404BC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #404BC2
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404BC2#FFFFFF#000000##FFFFFF
##404BC21.006.993.006.99
#FFFFFF6.991.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF6.991.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #404bc2;
/* rgb */ color: rgb(64, 75, 194);
/* oklch */ color: oklch(47.8% 0.184 273.2);
Tailwind
colors: {
  custom: {
    50: '#847dd5',
    500: '#404bc2',
    950: '#000000',
  },
}
SCSS
$custom: #404bc2;
$custom-light: #847dd5;
$custom-dark: #000000;
JSON
{
  "hex": "#404bc2",
  "rgb": {
    "r": 64,
    "g": 75,
    "b": 194
  },
  "hsl": {
    "h": 234.923,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.47803,
    "c": 0.18381,
    "h": 273.2
  },
  "luminance": 0.10017
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #404BC2

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

Preview Lab → · Contrast checker → · Palette generator →

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