#403CB9#403CB9

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

Color values

HEX#403CB9
RGBrgb(64, 60, 185)
HSLhsl(242, 51%, 48%)
HSVhsv(242, 68%, 73%)
CMYKcmyk(65.4%, 67.6%, 0%, 27.5%)
CIE-LABlab(33.61, 40.32, -65.33)
CIE-LCHlch(33.61, 76.77, 301.68°)
OKLaboklab(44.46% 0.0224 -0.1885)
OKLCHoklch(44.46% 0.19 276.8)
XYZxyz(12.4843, 7.8234, 46.7417)
Luminance0.0782 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403CB9 #B5B93C
analogous
#3C76B9 #403CB9 #7E3CB9
triadic
#403CB9 #B9403C #3CB940
tetradic
#403CB9 #B93C76 #B5B93C #3CB97E
square
#403CB9 #B93C76 #B5B93C #3CB97E
split-complementary
#403CB9 #B97E3C #76B93C
monochromatic
#201E5D #302D8B #403CB9 #6865CD #9693DC

Accessibility & contrast

On white

8.19
#403CB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#403CB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403CB9
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403CB9#FFFFFF#000000##FFFFFF
##403CB91.008.192.568.19
#FFFFFF8.191.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.191.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #403cb9;
/* rgb */ color: rgb(64, 60, 185);
/* oklch */ color: oklch(44.5% 0.190 276.8);
Tailwind
colors: {
  custom: {
    50: '#8472cf',
    500: '#403cb9',
    950: '#000000',
  },
}
SCSS
$custom: #403cb9;
$custom-light: #8472cf;
$custom-dark: #000000;
JSON
{
  "hex": "#403cb9",
  "rgb": {
    "r": 64,
    "g": 60,
    "b": 185
  },
  "hsl": {
    "h": 241.92,
    "s": 51.02,
    "l": 48.039
  },
  "oklch": {
    "l": 0.44457,
    "c": 0.18986,
    "h": 276.8
  },
  "luminance": 0.07824
}

Semantic roles & 50–950 ramp

primary
#403CB9
secondary
#C5C789
accent
#DA4DD6
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0C0814
muted
#7D7B82

Preview Lab

Preview with #403CB9

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

Preview Lab → · Contrast checker → · Palette generator →

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