#404BCB#404BCB

#404BCB is a mid, vivid blue. Relative luminance 0.104; OKLCH L 48.6% C 0.196 H 272.9°. Best body text is #FFFFFF at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#404BCB
RGBrgb(64, 75, 203)
HSLhsl(235, 57%, 52%)
HSVhsv(235, 68%, 80%)
CMYKcmyk(68.5%, 63.1%, 0%, 20.4%)
CIE-LABlab(38.61, 37.24, -67.69)
CIE-LCHlch(38.61, 77.25, 298.82°)
OKLaboklab(48.57% 0.0098 -0.1953)
OKLCHoklch(48.57% 0.196 272.9)
XYZxyz(15.4063, 10.4325, 57.6901)
Luminance0.1043 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404BCB #CBC040
analogous
#4090CB #404BCB #7B40CB
triadic
#404BCB #CB404B #4BCB40
tetradic
#404BCB #CB4090 #CBC040 #40CB7B
square
#404BCB #CB4090 #CBC040 #40CB7B
split-complementary
#404BCB #CB7B40 #90CB40
monochromatic
#1F2572 #2C35A2 #404BCB #7078D8 #A0A6E5

Accessibility & contrast

On white

6.80
#404BCB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#404BCB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #404BCB
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404BCB#FFFFFF#000000##FFFFFF
##404BCB1.006.803.096.80
#FFFFFF6.801.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061CF
Deuteranopia (green-blind)
#0055C9
Tritanopia (blue-blind)
#006C84
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #404bcb;
/* rgb */ color: rgb(64, 75, 203);
/* oklch */ color: oklch(48.6% 0.196 272.9);
Tailwind
colors: {
  custom: {
    50: '#867ddc',
    500: '#404bcb',
    950: '#000000',
  },
}
SCSS
$custom: #404bcb;
$custom-light: #867ddc;
$custom-dark: #000000;
JSON
{
  "hex": "#404bcb",
  "rgb": {
    "r": 64,
    "g": 75,
    "b": 203
  },
  "hsl": {
    "h": 235.252,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.48574,
    "c": 0.1956,
    "h": 272.9
  },
  "luminance": 0.10434
}

Semantic roles & 50–950 ramp

primary
#404BCB
secondary
#D2CD95
accent
#D447E0
background
#F8F7FD
surface
#F0EEFB
border
#CBC9D4
text
#0D0915
muted
#7D7B83

Preview Lab

Preview with #404BCB

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

Preview Lab → · Contrast checker → · Palette generator →

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