#403DB4#403DB4

#403DB4 is a dark, vivid blue. Relative luminance 0.077; OKLCH L 44.2% C 0.182 H 277.0°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#403DB4
RGBrgb(64, 61, 180)
HSLhsl(242, 49%, 47%)
HSVhsv(242, 66%, 71%)
CMYKcmyk(64.4%, 66.1%, 0%, 29.4%)
CIE-LABlab(33.40, 38.05, -62.73)
CIE-LCHlch(33.40, 73.36, 301.24°)
OKLaboklab(44.17% 0.0222 -0.1809)
OKLCHoklch(44.17% 0.182 277)
XYZxyz(12.0186, 7.7218, 44.0283)
Luminance0.0772 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403DB4 #B1B43D
analogous
#3D75B4 #403DB4 #7C3DB4
triadic
#403DB4 #B4403D #3DB440
tetradic
#403DB4 #B43D75 #B1B43D #3DB47C
square
#403DB4 #B43D75 #B1B43D #3DB47C
split-complementary
#403DB4 #B47C3D #75B43D
monochromatic
#1F1E59 #302E86 #403DB4 #6664CA #9392DA

Accessibility & contrast

On white

8.25
#403DB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#403DB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403DB4
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403DB4#FFFFFF#000000##FFFFFF
##403DB41.008.252.548.25
#FFFFFF8.251.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B8
Deuteranopia (green-blind)
#0049B2
Tritanopia (blue-blind)
#005C73
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #403db4;
/* rgb */ color: rgb(64, 61, 180);
/* oklch */ color: oklch(44.2% 0.182 277.0);
Tailwind
colors: {
  custom: {
    50: '#8373cb',
    500: '#403db4',
    950: '#000000',
  },
}
SCSS
$custom: #403db4;
$custom-light: #8373cb;
$custom-dark: #000000;
JSON
{
  "hex": "#403db4",
  "rgb": {
    "r": 64,
    "g": 61,
    "b": 180
  },
  "hsl": {
    "h": 241.513,
    "s": 49.378,
    "l": 47.255
  },
  "oklch": {
    "l": 0.44165,
    "c": 0.18225,
    "h": 277
  },
  "luminance": 0.07723
}

Semantic roles & 50–950 ramp

primary
#403DB4
secondary
#C3C588
accent
#D94FD5
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0C0813
muted
#7D7B82

Preview Lab

Preview with #403DB4

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

Preview Lab → · Contrast checker → · Palette generator →

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