#403B9F#403B9F

#403B9F is a dark, vivid blue. Relative luminance 0.067; OKLCH L 42.0% C 0.157 H 279.5°. Best body text is #FFFFFF at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#403B9F
RGBrgb(64, 59, 159)
HSLhsl(243, 46%, 43%)
HSVhsv(243, 63%, 62%)
CMYKcmyk(59.7%, 62.9%, 0%, 37.6%)
CIE-LABlab(31.16, 32.24, -53.80)
CIE-LCHlch(31.16, 62.72, 300.94°)
OKLaboklab(41.99% 0.0258 -0.1547)
OKLCHoklch(41.99% 0.157 279.5)
XYZxyz(9.9343, 6.7204, 33.5678)
Luminance0.0672 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403B9F #9A9F3B
analogous
#3B689F #403B9F #723B9F
triadic
#403B9F #9F403B #3B9F40
tetradic
#403B9F #9F3B68 #9A9F3B #3B9F72
square
#403B9F #9F3B68 #9A9F3B #3B9F72
split-complementary
#403B9F #9F723B #689F3B
monochromatic
#1C1A46 #2E2A72 #403B9F #5C57C1 #8783D1

Accessibility & contrast

On white

8.96
#403B9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #403B9F
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403B9F#FFFFFF#000000##FFFFFF
##403B9F1.008.962.348.96
#FFFFFF8.961.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA2
Deuteranopia (green-blind)
#00459D
Tritanopia (blue-blind)
#005467
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #403b9f;
/* rgb */ color: rgb(64, 59, 159);
/* oklch */ color: oklch(42.0% 0.157 279.5);
Tailwind
colors: {
  custom: {
    50: '#7f71bc',
    500: '#403b9f',
    950: '#000000',
  },
}
SCSS
$custom: #403b9f;
$custom-light: #7f71bc;
$custom-dark: #000000;
JSON
{
  "hex": "#403b9f",
  "rgb": {
    "r": 64,
    "g": 59,
    "b": 159
  },
  "hsl": {
    "h": 243,
    "s": 45.872,
    "l": 42.745
  },
  "oklch": {
    "l": 0.41987,
    "c": 0.15681,
    "h": 279.5
  },
  "luminance": 0.06721
}

Semantic roles & 50–950 ramp

primary
#403B9F
secondary
#B8BB7B
accent
#D652CF
background
#F8F6FB
surface
#EFECF6
border
#CAC7D0
text
#0B0712
muted
#7C7A81

Preview Lab

Preview with #403B9F

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

Preview Lab → · Contrast checker → · Palette generator →

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