#404BB2#404BB2

#404BB2 is a mid, vivid blue. Relative luminance 0.093; OKLCH L 46.5% C 0.162 H 273.7°. Best body text is #FFFFFF at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#404BB2
RGBrgb(64, 75, 178)
HSLhsl(234, 47%, 47%)
HSVhsv(234, 64%, 70%)
CMYKcmyk(64%, 57.9%, 0%, 30.2%)
CIE-LABlab(36.62, 28.55, -56.29)
CIE-LCHlch(36.62, 63.11, 296.90°)
OKLaboklab(46.49% 0.0104 -0.1619)
OKLCHoklch(46.49% 0.162 273.7)
XYZxyz(12.6636, 9.3354, 43.2454)
Luminance0.0934 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404BB2 #B2A740
analogous
#4084B2 #404BB2 #6E40B2
triadic
#404BB2 #B2404B #4BB240
tetradic
#404BB2 #B24084 #B2A740 #40B26E
square
#404BB2 #B24084 #B2A740 #40B26E
split-complementary
#404BB2 #B26E40 #84B240
monochromatic
#202558 #303885 #404BB2 #6770C8 #949BD8

Accessibility & contrast

On white

7.32
#404BB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#404BB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #404BB2
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404BB2#FFFFFF#000000##FFFFFF
##404BB21.007.322.877.32
#FFFFFF7.321.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB5
Deuteranopia (green-blind)
#0051B0
Tritanopia (blue-blind)
#006477
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #404bb2;
/* rgb */ color: rgb(64, 75, 178);
/* oklch */ color: oklch(46.5% 0.162 273.7);
Tailwind
colors: {
  custom: {
    50: '#817dca',
    500: '#404bb2',
    950: '#000000',
  },
}
SCSS
$custom: #404bb2;
$custom-light: #817dca;
$custom-dark: #000000;
JSON
{
  "hex": "#404bb2",
  "rgb": {
    "r": 64,
    "g": 75,
    "b": 178
  },
  "hsl": {
    "h": 234.211,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.46487,
    "c": 0.1622,
    "h": 273.7
  },
  "luminance": 0.09336
}

Semantic roles & 50–950 ramp

primary
#404BB2
secondary
#C4BE8A
accent
#CA51D7
background
#F8F7FC
surface
#F0EEF8
border
#CBC9D1
text
#0B0913
muted
#7C7B82

Preview Lab

Preview with #404BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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