#403DB3#403DB3

#403DB3 is a dark, vivid blue. Relative luminance 0.077; OKLCH L 44.1% C 0.181 H 277.1°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#403DB3
RGBrgb(64, 61, 179)
HSLhsl(242, 49%, 47%)
HSVhsv(242, 66%, 70%)
CMYKcmyk(64.2%, 65.9%, 0%, 29.8%)
CIE-LABlab(33.31, 37.71, -62.28)
CIE-LCHlch(33.31, 72.80, 301.20°)
OKLaboklab(44.08% 0.0223 -0.1796)
OKLCHoklch(44.08% 0.181 277.1)
XYZxyz(11.9171, 7.6812, 43.4937)
Luminance0.0768 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403DB3 #B0B33D
analogous
#3D75B3 #403DB3 #7B3DB3
triadic
#403DB3 #B3403D #3DB340
tetradic
#403DB3 #B33D75 #B0B33D #3DB37B
square
#403DB3 #B33D75 #B0B33D #3DB37B
split-complementary
#403DB3 #B37B3D #75B33D
monochromatic
#1F1E58 #302D85 #403DB3 #6663CA #9391D9

Accessibility & contrast

On white

8.28
#403DB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #403DB3
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403DB3#FFFFFF#000000##FFFFFF
##403DB31.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B7
Deuteranopia (green-blind)
#0049B1
Tritanopia (blue-blind)
#005C72
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #403db3;
/* rgb */ color: rgb(64, 61, 179);
/* oklch */ color: oklch(44.1% 0.181 277.1);
Tailwind
colors: {
  custom: {
    50: '#8273cb',
    500: '#403db3',
    950: '#000000',
  },
}
SCSS
$custom: #403db3;
$custom-light: #8273cb;
$custom-dark: #000000;
JSON
{
  "hex": "#403db3",
  "rgb": {
    "r": 64,
    "g": 61,
    "b": 179
  },
  "hsl": {
    "h": 241.525,
    "s": 49.167,
    "l": 47.059
  },
  "oklch": {
    "l": 0.44076,
    "c": 0.18095,
    "h": 277.1
  },
  "luminance": 0.07682
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #403DB3

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

Preview Lab → · Contrast checker → · Palette generator →

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