#403DB9#403DB9

#403DB9 is a dark, vivid blue. Relative luminance 0.079; OKLCH L 44.6% C 0.189 H 276.6°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#403DB9
RGBrgb(64, 61, 185)
HSLhsl(241, 50%, 48%)
HSVhsv(241, 67%, 73%)
CMYKcmyk(65.4%, 67%, 0%, 27.5%)
CIE-LABlab(33.84, 39.72, -64.97)
CIE-LCHlch(33.84, 76.15, 301.44°)
OKLaboklab(44.62% 0.0217 -0.1875)
OKLCHoklch(44.62% 0.189 276.6)
XYZxyz(12.5372, 7.9292, 46.7593)
Luminance0.0793 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403DB9 #B6B93D
analogous
#3D78B9 #403DB9 #7E3DB9
triadic
#403DB9 #B9403D #3DB940
tetradic
#403DB9 #B93D78 #B6B93D #3DB97E
square
#403DB9 #B93D78 #B6B93D #3DB97E
split-complementary
#403DB9 #B97E3D #78B93D
monochromatic
#201F5D #302E8B #403DB9 #6966CD #9695DC

Accessibility & contrast

On white

8.12
#403DB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#403DB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403DB9
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403DB9#FFFFFF#000000##FFFFFF
##403DB91.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BD
Deuteranopia (green-blind)
#004AB7
Tritanopia (blue-blind)
#005E76
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #403db9;
/* rgb */ color: rgb(64, 61, 185);
/* oklch */ color: oklch(44.6% 0.189 276.6);
Tailwind
colors: {
  custom: {
    50: '#8473cf',
    500: '#403db9',
    950: '#000000',
  },
}
SCSS
$custom: #403db9;
$custom-light: #8473cf;
$custom-dark: #000000;
JSON
{
  "hex": "#403db9",
  "rgb": {
    "r": 64,
    "g": 61,
    "b": 185
  },
  "hsl": {
    "h": 241.452,
    "s": 50.407,
    "l": 48.235
  },
  "oklch": {
    "l": 0.44618,
    "c": 0.18871,
    "h": 276.6
  },
  "luminance": 0.0793
}

Semantic roles & 50–950 ramp

primary
#403DB9
secondary
#C6C78B
accent
#DA4ED7
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0C0814
muted
#7D7B82

Preview Lab

Preview with #403DB9

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

Preview Lab → · Contrast checker → · Palette generator →

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