#404DCB#404DCB

#404DCB is a mid, vivid blue. Relative luminance 0.107; OKLCH L 48.9% C 0.193 H 272.5°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#404DCB
RGBrgb(64, 77, 203)
HSLhsl(234, 57%, 52%)
HSVhsv(234, 68%, 80%)
CMYKcmyk(68.5%, 62.1%, 0%, 20.4%)
CIE-LABlab(39.08, 36.00, -66.91)
CIE-LCHlch(39.08, 75.98, 298.28°)
OKLaboklab(48.92% 0.0083 -0.193)
OKLCHoklch(48.92% 0.193 272.5)
XYZxyz(15.5441, 10.7081, 57.7360)
Luminance0.1071 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#404DCB #CBBE40
analogous
#4093CB #404DCB #7840CB
triadic
#404DCB #CB404D #4DCB40
tetradic
#404DCB #CB4093 #CBBE40 #40CB78
square
#404DCB #CB4093 #CBBE40 #40CB78
split-complementary
#404DCB #CB7840 #93CB40
monochromatic
#1F2772 #2C37A2 #404DCB #707AD8 #A0A7E5

Accessibility & contrast

On white

6.68
#404DCB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#404DCB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #404DCB
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##404DCB#FFFFFF#000000##FFFFFF
##404DCB1.006.683.146.68
#FFFFFF6.681.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063CF
Deuteranopia (green-blind)
#0056C9
Tritanopia (blue-blind)
#006D85
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #404dcb;
/* rgb */ color: rgb(64, 77, 203);
/* oklch */ color: oklch(48.9% 0.193 272.5);
Tailwind
colors: {
  custom: {
    50: '#867fdc',
    500: '#404dcb',
    950: '#000000',
  },
}
SCSS
$custom: #404dcb;
$custom-light: #867fdc;
$custom-dark: #000000;
JSON
{
  "hex": "#404dcb",
  "rgb": {
    "r": 64,
    "g": 77,
    "b": 203
  },
  "hsl": {
    "h": 234.388,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.48924,
    "c": 0.19323,
    "h": 272.5
  },
  "luminance": 0.1071
}

Semantic roles & 50–950 ramp

primary
#404DCB
secondary
#D2CC95
accent
#D247E0
background
#F8F7FD
surface
#F0EEFB
border
#CBC9D4
text
#0D0A15
muted
#7D7C83

Preview Lab

Preview with #404DCB

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

Preview Lab → · Contrast checker → · Palette generator →

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