#403D99#403D99

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

Color values

HEX#403D99
RGBrgb(64, 61, 153)
HSLhsl(242, 43%, 42%)
HSVhsv(242, 60%, 60%)
CMYKcmyk(58.2%, 60.1%, 0%, 40%)
CIE-LABlab(31.18, 28.95, -50.13)
CIE-LCHlch(31.18, 57.89, 300.00°)
OKLaboklab(41.85% 0.024 -0.1439)
OKLCHoklch(41.85% 0.146 279.5)
XYZxyz(9.5311, 6.7267, 30.9270)
Luminance0.0673 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403D99 #96993D
analogous
#3D6899 #403D99 #6E3D99
triadic
#403D99 #99403D #3D9940
tetradic
#403D99 #993D68 #96993D #3D996E
square
#403D99 #993D68 #96993D #3D996E
split-complementary
#403D99 #996E3D #68993D
monochromatic
#1B1A41 #2E2C6D #403D99 #5A57BC #8583CE

Accessibility & contrast

On white

8.95
#403D99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#403D99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403D99
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403D99#FFFFFF#000000##FFFFFF
##403D991.008.952.358.95
#FFFFFF8.951.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9C
Deuteranopia (green-blind)
#004697
Tritanopia (blue-blind)
#0C5365
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #403d99;
/* rgb */ color: rgb(64, 61, 153);
/* oklch */ color: oklch(41.8% 0.146 279.5);
Tailwind
colors: {
  custom: {
    50: '#7e72b8',
    500: '#403d99',
    950: '#000000',
  },
}
SCSS
$custom: #403d99;
$custom-light: #7e72b8;
$custom-dark: #000000;
JSON
{
  "hex": "#403d99",
  "rgb": {
    "r": 64,
    "g": 61,
    "b": 153
  },
  "hsl": {
    "h": 241.957,
    "s": 42.991,
    "l": 41.961
  },
  "oklch": {
    "l": 0.41849,
    "c": 0.14588,
    "h": 279.5
  },
  "luminance": 0.06727
}

Semantic roles & 50–950 ramp

primary
#403D99
secondary
#B6B87A
accent
#D355CF
background
#F8F6FB
surface
#EFECF6
border
#CAC7D0
text
#0B0811
muted
#7C7B80

Preview Lab

Preview with #403D99

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

Preview Lab → · Contrast checker → · Palette generator →

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