#403B9E#403B9E

#403B9E is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.9% C 0.155 H 279.6°. Best body text is #FFFFFF at 8.98:1 contrast (WCAG AA passes).

Color values

HEX#403B9E
RGBrgb(64, 59, 158)
HSLhsl(243, 46%, 43%)
HSVhsv(243, 63%, 62%)
CMYKcmyk(59.5%, 62.7%, 0%, 38%)
CIE-LABlab(31.08, 31.91, -53.32)
CIE-LCHlch(31.08, 62.14, 300.89°)
OKLaboklab(41.9% 0.0258 -0.1533)
OKLCHoklch(41.9% 0.155 279.6)
XYZxyz(9.8479, 6.6859, 33.1127)
Luminance0.0669 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403B9E #999E3B
analogous
#3B689E #403B9E #713B9E
triadic
#403B9E #9E403B #3B9E40
tetradic
#403B9E #9E3B68 #999E3B #3B9E71
square
#403B9E #9E3B68 #999E3B #3B9E71
split-complementary
#403B9E #9E713B #689E3B
monochromatic
#1C1A45 #2E2A71 #403B9E #5C56C0 #8783D1

Accessibility & contrast

On white

8.98
#403B9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#403B9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403B9E
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403B9E#FFFFFF#000000##FFFFFF
##403B9E1.008.982.348.98
#FFFFFF8.981.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA1
Deuteranopia (green-blind)
#00459C
Tritanopia (blue-blind)
#005367
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #403b9e;
/* rgb */ color: rgb(64, 59, 158);
/* oklch */ color: oklch(41.9% 0.155 279.6);
Tailwind
colors: {
  custom: {
    50: '#7f71bb',
    500: '#403b9e',
    950: '#000000',
  },
}
SCSS
$custom: #403b9e;
$custom-light: #7f71bb;
$custom-dark: #000000;
JSON
{
  "hex": "#403b9e",
  "rgb": {
    "r": 64,
    "g": 59,
    "b": 158
  },
  "hsl": {
    "h": 243.03,
    "s": 45.622,
    "l": 42.549
  },
  "oklch": {
    "l": 0.41902,
    "c": 0.15545,
    "h": 279.6
  },
  "luminance": 0.06687
}

Semantic roles & 50–950 ramp

primary
#403B9E
secondary
#B7BB7A
accent
#D553CF
background
#F8F6FB
surface
#EFECF6
border
#CAC7D0
text
#0B0712
muted
#7C7A81

Preview Lab

Preview with #403B9E

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

Preview Lab → · Contrast checker → · Palette generator →

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