#403DB1#403DB1

#403DB1 is a dark, vivid blue. Relative luminance 0.076; OKLCH L 43.9% C 0.178 H 277.3°. Best body text is #FFFFFF at 8.33:1 contrast (WCAG AA passes).

Color values

HEX#403DB1
RGBrgb(64, 61, 177)
HSLhsl(242, 49%, 47%)
HSVhsv(242, 66%, 69%)
CMYKcmyk(63.8%, 65.5%, 0%, 30.6%)
CIE-LABlab(33.14, 37.04, -61.37)
CIE-LCHlch(33.14, 71.68, 301.11°)
OKLaboklab(43.9% 0.0225 -0.1769)
OKLCHoklch(43.9% 0.178 277.3)
XYZxyz(11.7163, 7.6009, 42.4361)
Luminance0.0760 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403DB1 #AEB13D
analogous
#3D74B1 #403DB1 #7A3DB1
triadic
#403DB1 #B1403D #3DB140
tetradic
#403DB1 #B13D74 #AEB13D #3DB17A
square
#403DB1 #B13D74 #AEB13D #3DB17A
split-complementary
#403DB1 #B17A3D #74B13D
monochromatic
#1F1E56 #302D83 #403DB1 #6562C9 #9290D9

Accessibility & contrast

On white

8.33
#403DB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#403DB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403DB1
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403DB1#FFFFFF#000000##FFFFFF
##403DB11.008.332.528.33
#FFFFFF8.331.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B5
Deuteranopia (green-blind)
#0049AF
Tritanopia (blue-blind)
#005B71
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #403db1;
/* rgb */ color: rgb(64, 61, 177);
/* oklch */ color: oklch(43.9% 0.178 277.3);
Tailwind
colors: {
  custom: {
    50: '#8273c9',
    500: '#403db1',
    950: '#000000',
  },
}
SCSS
$custom: #403db1;
$custom-light: #8273c9;
$custom-dark: #000000;
JSON
{
  "hex": "#403db1",
  "rgb": {
    "r": 64,
    "g": 61,
    "b": 177
  },
  "hsl": {
    "h": 241.552,
    "s": 48.739,
    "l": 46.667
  },
  "oklch": {
    "l": 0.43897,
    "c": 0.17834,
    "h": 277.3
  },
  "luminance": 0.07602
}

Semantic roles & 50–950 ramp

primary
#403DB1
secondary
#C2C486
accent
#D850D5
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0813
muted
#7D7B82

Preview Lab

Preview with #403DB1

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

Preview Lab → · Contrast checker → · Palette generator →

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