#403F99#403F99

#403F99 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.2% C 0.143 H 278.8°. Best body text is #FFFFFF at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#403F99
RGBrgb(64, 63, 153)
HSLhsl(241, 42%, 42%)
HSVhsv(241, 59%, 60%)
CMYKcmyk(58.2%, 58.8%, 0%, 40%)
CIE-LABlab(31.68, 27.66, -49.31)
CIE-LCHlch(31.68, 56.54, 299.29°)
OKLaboklab(42.22% 0.022 -0.1415)
OKLCHoklch(42.22% 0.143 278.8)
XYZxyz(9.6398, 6.9442, 30.9632)
Luminance0.0694 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403F99 #98993F
analogous
#3F6B99 #403F99 #6D3F99
triadic
#403F99 #99403F #3F9940
tetradic
#403F99 #993F6B #98993F #3F996D
square
#403F99 #993F6B #98993F #3F996D
split-complementary
#403F99 #996D3F #6B993F
monochromatic
#1C1B42 #2E2D6E #403F99 #5B5ABB #8685CD

Accessibility & contrast

On white

8.79
#403F99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#403F99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403F99
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403F99#FFFFFF#000000##FFFFFF
##403F991.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9C
Deuteranopia (green-blind)
#004797
Tritanopia (blue-blind)
#0C5465
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #403f99;
/* rgb */ color: rgb(64, 63, 153);
/* oklch */ color: oklch(42.2% 0.143 278.8);
Tailwind
colors: {
  custom: {
    50: '#7d74b8',
    500: '#403f99',
    950: '#000000',
  },
}
SCSS
$custom: #403f99;
$custom-light: #7d74b8;
$custom-dark: #000000;
JSON
{
  "hex": "#403f99",
  "rgb": {
    "r": 64,
    "g": 63,
    "b": 153
  },
  "hsl": {
    "h": 240.667,
    "s": 41.667,
    "l": 42.353
  },
  "oklch": {
    "l": 0.42221,
    "c": 0.14317,
    "h": 278.8
  },
  "luminance": 0.06945
}

Semantic roles & 50–950 ramp

primary
#403F99
secondary
#B7B77C
accent
#D156D0
background
#F8F7FB
surface
#EFEDF6
border
#CAC8D0
text
#0A0811
muted
#7C7B80

Preview Lab

Preview with #403F99

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

Preview Lab → · Contrast checker → · Palette generator →

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