#403A99#403A99

#403A99 is a dark, vivid blue. Relative luminance 0.064; OKLCH L 41.3% C 0.150 H 280.4°. Best body text is #FFFFFF at 9.20:1 contrast (WCAG AA passes).

Color values

HEX#403A99
RGBrgb(64, 58, 153)
HSLhsl(244, 45%, 41%)
HSVhsv(244, 62%, 60%)
CMYKcmyk(58.2%, 62.1%, 0%, 40%)
CIE-LABlab(30.44, 30.86, -51.33)
CIE-LCHlch(30.44, 59.89, 301.02°)
OKLaboklab(41.3% 0.0271 -0.1474)
OKLCHoklch(41.3% 0.15 280.4)
XYZxyz(9.3754, 6.4154, 30.8751)
Luminance0.0642 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403A99 #93993A
analogous
#3A6499 #403A99 #703A99
triadic
#403A99 #99403A #3A9940
tetradic
#403A99 #993A64 #93993A #3A9970
square
#403A99 #993A64 #93993A #3A9970
split-complementary
#403A99 #99703A #64993A
monochromatic
#1B1840 #2D296D #403A99 #5953BE #847FCE

Accessibility & contrast

On white

9.20
#403A99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#403A99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403A99
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403A99#FFFFFF#000000##FFFFFF
##403A991.009.202.289.20
#FFFFFF9.201.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9C
Deuteranopia (green-blind)
#004497
Tritanopia (blue-blind)
#0D5164
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #403a99;
/* rgb */ color: rgb(64, 58, 153);
/* oklch */ color: oklch(41.3% 0.150 280.4);
Tailwind
colors: {
  custom: {
    50: '#7e70b8',
    500: '#403a99',
    950: '#000000',
  },
}
SCSS
$custom: #403a99;
$custom-light: #7e70b8;
$custom-dark: #000000;
JSON
{
  "hex": "#403a99",
  "rgb": {
    "r": 64,
    "g": 58,
    "b": 153
  },
  "hsl": {
    "h": 243.789,
    "s": 45.024,
    "l": 41.373
  },
  "oklch": {
    "l": 0.41304,
    "c": 0.1499,
    "h": 280.4
  },
  "luminance": 0.06416
}

Semantic roles & 50–950 ramp

primary
#403A99
secondary
#B4B877
accent
#D553CD
background
#F8F6FB
surface
#EFECF6
border
#CAC7D0
text
#0B0711
muted
#7C7A80

Preview Lab

Preview with #403A99

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

Preview Lab → · Contrast checker → · Palette generator →

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