#403DB5#403DB5

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

Color values

HEX#403DB5
RGBrgb(64, 61, 181)
HSLhsl(242, 50%, 47%)
HSVhsv(242, 66%, 71%)
CMYKcmyk(64.6%, 66.3%, 0%, 29%)
CIE-LABlab(33.48, 38.38, -63.18)
CIE-LCHlch(33.48, 73.92, 301.28°)
OKLaboklab(44.26% 0.0221 -0.1822)
OKLCHoklch(44.26% 0.184 276.9)
XYZxyz(12.1209, 7.7627, 44.5667)
Luminance0.0776 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403DB5 #B2B53D
analogous
#3D76B5 #403DB5 #7C3DB5
triadic
#403DB5 #B5403D #3DB540
tetradic
#403DB5 #B53D76 #B2B53D #3DB57C
square
#403DB5 #B53D76 #B2B53D #3DB57C
split-complementary
#403DB5 #B57C3D #76B53D
monochromatic
#201E59 #302E87 #403DB5 #6764CB #9492DA

Accessibility & contrast

On white

8.23
#403DB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#403DB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403DB5
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403DB5#FFFFFF#000000##FFFFFF
##403DB51.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B9
Deuteranopia (green-blind)
#004AB3
Tritanopia (blue-blind)
#005C73
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #403db5;
/* rgb */ color: rgb(64, 61, 181);
/* oklch */ color: oklch(44.3% 0.184 276.9);
Tailwind
colors: {
  custom: {
    50: '#8373cc',
    500: '#403db5',
    950: '#000000',
  },
}
SCSS
$custom: #403db5;
$custom-light: #8373cc;
$custom-dark: #000000;
JSON
{
  "hex": "#403db5",
  "rgb": {
    "r": 64,
    "g": 61,
    "b": 181
  },
  "hsl": {
    "h": 241.5,
    "s": 49.587,
    "l": 47.451
  },
  "oklch": {
    "l": 0.44255,
    "c": 0.18355,
    "h": 276.9
  },
  "luminance": 0.07764
}

Semantic roles & 50–950 ramp

primary
#403DB5
secondary
#C4C588
accent
#D94FD6
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0C0813
muted
#7D7B82

Preview Lab

Preview with #403DB5

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

Preview Lab → · Contrast checker → · Palette generator →

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