#403DB7#403DB7

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

Color values

HEX#403DB7
RGBrgb(64, 61, 183)
HSLhsl(241, 50%, 48%)
HSVhsv(241, 67%, 72%)
CMYKcmyk(65%, 66.7%, 0%, 28.2%)
CIE-LABlab(33.66, 39.05, -64.08)
CIE-LCHlch(33.66, 75.04, 301.36°)
OKLaboklab(44.44% 0.0219 -0.1848)
OKLCHoklch(44.44% 0.186 276.8)
XYZxyz(12.3276, 7.8453, 45.6552)
Luminance0.0785 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403DB7 #B4B73D
analogous
#3D77B7 #403DB7 #7D3DB7
triadic
#403DB7 #B7403D #3DB740
tetradic
#403DB7 #B73D77 #B4B73D #3DB77D
square
#403DB7 #B73D77 #B4B73D #3DB77D
split-complementary
#403DB7 #B77D3D #77B73D
monochromatic
#201E5B #302E89 #403DB7 #6865CC #9593DB

Accessibility & contrast

On white

8.17
#403DB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#403DB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403DB7
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403DB7#FFFFFF#000000##FFFFFF
##403DB71.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BB
Deuteranopia (green-blind)
#004AB5
Tritanopia (blue-blind)
#005D75
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #403db7;
/* rgb */ color: rgb(64, 61, 183);
/* oklch */ color: oklch(44.4% 0.186 276.8);
Tailwind
colors: {
  custom: {
    50: '#8373ce',
    500: '#403db7',
    950: '#000000',
  },
}
SCSS
$custom: #403db7;
$custom-light: #8373ce;
$custom-dark: #000000;
JSON
{
  "hex": "#403db7",
  "rgb": {
    "r": 64,
    "g": 61,
    "b": 183
  },
  "hsl": {
    "h": 241.475,
    "s": 50,
    "l": 47.843
  },
  "oklch": {
    "l": 0.44436,
    "c": 0.18613,
    "h": 276.8
  },
  "luminance": 0.07846
}

Semantic roles & 50–950 ramp

primary
#403DB7
secondary
#C5C689
accent
#DA4ED6
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0C0814
muted
#7D7B82

Preview Lab

Preview with #403DB7

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

Preview Lab → · Contrast checker → · Palette generator →

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