#404FB2#404FB2

#404FB2 is a mid, vivid blue. Relative luminance 0.099; OKLCH L 47.3% C 0.157 H 272.4°. Best body text is #FFFFFF at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#404FB2
RGBrgb(64, 79, 178)
HSLhsl(232, 47%, 47%)
HSVhsv(232, 64%, 70%)
CMYKcmyk(64%, 55.6%, 0%, 30.2%)
CIE-LABlab(37.65, 25.98, -54.61)
CIE-LCHlch(37.65, 60.48, 295.44°)
OKLaboklab(47.26% 0.0067 -0.1569)
OKLCHoklch(47.26% 0.157 272.4)
XYZxyz(12.9435, 9.8952, 43.3387)
Luminance0.0990 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404FB2 #B2A340
analogous
#4088B2 #404FB2 #6A40B2
triadic
#404FB2 #B2404F #4FB240
tetradic
#404FB2 #B24088 #B2A340 #40B26A
square
#404FB2 #B24088 #B2A340 #40B26A
split-complementary
#404FB2 #B26A40 #88B240
monochromatic
#202758 #303B85 #404FB2 #6774C8 #949DD8

Accessibility & contrast

On white

7.05
#404FB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #404FB2
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404FB2#FFFFFF#000000##FFFFFF
##404FB21.007.052.987.05
#FFFFFF7.051.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EB5
Deuteranopia (green-blind)
#0054B0
Tritanopia (blue-blind)
#006779
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #404fb2;
/* rgb */ color: rgb(64, 79, 178);
/* oklch */ color: oklch(47.3% 0.157 272.4);
Tailwind
colors: {
  custom: {
    50: '#8180ca',
    500: '#404fb2',
    950: '#000000',
  },
}
SCSS
$custom: #404fb2;
$custom-light: #8180ca;
$custom-dark: #000000;
JSON
{
  "hex": "#404fb2",
  "rgb": {
    "r": 64,
    "g": 79,
    "b": 178
  },
  "hsl": {
    "h": 232.105,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.47257,
    "c": 0.15705,
    "h": 272.4
  },
  "luminance": 0.09896
}

Semantic roles & 50–950 ramp

primary
#404FB2
secondary
#C4BC8A
accent
#C551D7
background
#F8F7FC
surface
#F0EEF8
border
#CBC9D1
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #404FB2

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

Preview Lab → · Contrast checker → · Palette generator →

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