#403B9D#403B9D

#403B9D is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.8% C 0.154 H 279.7°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#403B9D
RGBrgb(64, 59, 157)
HSLhsl(243, 45%, 42%)
HSVhsv(243, 62%, 62%)
CMYKcmyk(59.2%, 62.4%, 0%, 38.4%)
CIE-LABlab(31.00, 31.57, -52.85)
CIE-LCHlch(31.00, 61.56, 300.85°)
OKLaboklab(41.82% 0.0259 -0.1519)
OKLCHoklch(41.82% 0.154 279.7)
XYZxyz(9.7622, 6.6516, 32.6612)
Luminance0.0665 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403B9D #989D3B
analogous
#3B679D #403B9D #713B9D
triadic
#403B9D #9D403B #3B9D40
tetradic
#403B9D #9D3B67 #989D3B #3B9D71
square
#403B9D #9D3B67 #989D3B #3B9D71
split-complementary
#403B9D #9D713B #679D3B
monochromatic
#1C1A44 #2E2A71 #403B9D #5B56BF #8682D0

Accessibility & contrast

On white

9.01
#403B9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#403B9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403B9D
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403B9D#FFFFFF#000000##FFFFFF
##403B9D1.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA0
Deuteranopia (green-blind)
#00459B
Tritanopia (blue-blind)
#025366
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #403b9d;
/* rgb */ color: rgb(64, 59, 157);
/* oklch */ color: oklch(41.8% 0.154 279.7);
Tailwind
colors: {
  custom: {
    50: '#7e71bb',
    500: '#403b9d',
    950: '#000000',
  },
}
SCSS
$custom: #403b9d;
$custom-light: #7e71bb;
$custom-dark: #000000;
JSON
{
  "hex": "#403b9d",
  "rgb": {
    "r": 64,
    "g": 59,
    "b": 157
  },
  "hsl": {
    "h": 243.061,
    "s": 45.37,
    "l": 42.353
  },
  "oklch": {
    "l": 0.41818,
    "c": 0.15408,
    "h": 279.7
  },
  "luminance": 0.06652
}

Semantic roles & 50–950 ramp

primary
#403B9D
secondary
#B7BA7A
accent
#D553CE
background
#F8F6FB
surface
#EFECF6
border
#CAC7D0
text
#0B0712
muted
#7C7A81

Preview Lab

Preview with #403B9D

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

Preview Lab → · Contrast checker → · Palette generator →

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