#404FA2#404FA2

#404FA2 is a mid, vivid blue. Relative luminance 0.093; OKLCH L 46.1% C 0.134 H 272.4°. Best body text is #FFFFFF at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#404FA2
RGBrgb(64, 79, 162)
HSLhsl(231, 43%, 44%)
HSVhsv(231, 60%, 64%)
CMYKcmyk(60.5%, 51.2%, 0%, 36.5%)
CIE-LABlab(36.54, 20.35, -46.90)
CIE-LCHlch(36.54, 51.12, 293.45°)
OKLaboklab(46.06% 0.0056 -0.1342)
OKLCHoklch(46.06% 0.134 272.4)
XYZxyz(11.4298, 9.2897, 35.3662)
Luminance0.0929 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404FA2 #A29340
analogous
#4080A2 #404FA2 #6240A2
triadic
#404FA2 #A2404F #4FA240
tetradic
#404FA2 #A24080 #A29340 #40A262
square
#404FA2 #A24080 #A29340 #40A262
split-complementary
#404FA2 #A26240 #80A240
monochromatic
#1D244A #2F3A76 #404FA2 #5F6EC0 #8B96D1

Accessibility & contrast

On white

7.35
#404FA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#404FA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404FA2
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404FA2#FFFFFF#000000##FFFFFF
##404FA21.007.352.867.35
#FFFFFF7.351.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#225AA5
Deuteranopia (green-blind)
#0C52A0
Tritanopia (blue-blind)
#006271
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #404fa2;
/* rgb */ color: rgb(64, 79, 162);
/* oklch */ color: oklch(46.1% 0.134 272.4);
Tailwind
colors: {
  custom: {
    50: '#7e80be',
    500: '#404fa2',
    950: '#000000',
  },
}
SCSS
$custom: #404fa2;
$custom-light: #7e80be;
$custom-dark: #000000;
JSON
{
  "hex": "#404fa2",
  "rgb": {
    "r": 64,
    "g": 79,
    "b": 162
  },
  "hsl": {
    "h": 230.816,
    "s": 43.363,
    "l": 44.314
  },
  "oklch": {
    "l": 0.4606,
    "c": 0.13433,
    "h": 272.4
  },
  "luminance": 0.09291
}

Semantic roles & 50–950 ramp

primary
#404FA2
secondary
#BCB382
accent
#C055D3
background
#F8F7FB
surface
#EFEEF7
border
#CAC9D0
text
#0B0A12
muted
#7C7C81

Preview Lab

Preview with #404FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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