#403CB8#403CB8

#403CB8 is a dark, vivid blue. Relative luminance 0.078; OKLCH L 44.4% C 0.189 H 276.9°. Best body text is #FFFFFF at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#403CB8
RGBrgb(64, 60, 184)
HSLhsl(242, 51%, 48%)
HSVhsv(242, 67%, 72%)
CMYKcmyk(65.2%, 67.4%, 0%, 27.8%)
CIE-LABlab(33.52, 39.98, -64.89)
CIE-LCHlch(33.52, 76.22, 301.64°)
OKLaboklab(44.37% 0.0225 -0.1872)
OKLCHoklch(44.37% 0.189 276.9)
XYZxyz(12.3791, 7.7814, 46.1877)
Luminance0.0778 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403CB8 #B4B83C
analogous
#3C76B8 #403CB8 #7E3CB8
triadic
#403CB8 #B8403C #3CB840
tetradic
#403CB8 #B83C76 #B4B83C #3CB87E
square
#403CB8 #B83C76 #B4B83C #3CB87E
split-complementary
#403CB8 #B87E3C #76B83C
monochromatic
#201E5C #302D8A #403CB8 #6865CD #9593DC

Accessibility & contrast

On white

8.21
#403CB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#403CB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403CB8
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403CB8#FFFFFF#000000##FFFFFF
##403CB81.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BC
Deuteranopia (green-blind)
#0049B6
Tritanopia (blue-blind)
#005D75
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #403cb8;
/* rgb */ color: rgb(64, 60, 184);
/* oklch */ color: oklch(44.4% 0.189 276.9);
Tailwind
colors: {
  custom: {
    50: '#8372ce',
    500: '#403cb8',
    950: '#000000',
  },
}
SCSS
$custom: #403cb8;
$custom-light: #8372ce;
$custom-dark: #000000;
JSON
{
  "hex": "#403cb8",
  "rgb": {
    "r": 64,
    "g": 60,
    "b": 184
  },
  "hsl": {
    "h": 241.935,
    "s": 50.82,
    "l": 47.843
  },
  "oklch": {
    "l": 0.44365,
    "c": 0.18857,
    "h": 276.9
  },
  "luminance": 0.07782
}

Semantic roles & 50–950 ramp

primary
#403CB8
secondary
#C5C789
accent
#DA4DD6
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0C0814
muted
#7D7B82

Preview Lab

Preview with #403CB8

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

Preview Lab → · Contrast checker → · Palette generator →

#403CB8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva