#403C9F#403C9F

#403C9F is a dark, vivid blue. Relative luminance 0.068; OKLCH L 42.2% C 0.156 H 279.2°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#403C9F
RGBrgb(64, 60, 159)
HSLhsl(242, 45%, 43%)
HSVhsv(242, 62%, 62%)
CMYKcmyk(59.7%, 62.3%, 0%, 37.6%)
CIE-LABlab(31.40, 31.61, -53.40)
CIE-LCHlch(31.40, 62.06, 300.62°)
OKLaboklab(42.16% 0.0248 -0.1535)
OKLCHoklch(42.16% 0.156 279.2)
XYZxyz(9.9862, 6.8242, 33.5851)
Luminance0.0683 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403C9F #9B9F3C
analogous
#3C6A9F #403C9F #713C9F
triadic
#403C9F #9F403C #3C9F40
tetradic
#403C9F #9F3C6A #9B9F3C #3C9F71
square
#403C9F #9F3C6A #9B9F3C #3C9F71
split-complementary
#403C9F #9F713C #6A9F3C
monochromatic
#1C1A46 #2E2B73 #403C9F #5C58C0 #8885D1

Accessibility & contrast

On white

8.88
#403C9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#403C9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403C9F
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403C9F#FFFFFF#000000##FFFFFF
##403C9F1.008.882.378.88
#FFFFFF8.881.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA2
Deuteranopia (green-blind)
#00469D
Tritanopia (blue-blind)
#005467
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #403c9f;
/* rgb */ color: rgb(64, 60, 159);
/* oklch */ color: oklch(42.2% 0.156 279.2);
Tailwind
colors: {
  custom: {
    50: '#7f72bc',
    500: '#403c9f',
    950: '#000000',
  },
}
SCSS
$custom: #403c9f;
$custom-light: #7f72bc;
$custom-dark: #000000;
JSON
{
  "hex": "#403c9f",
  "rgb": {
    "r": 64,
    "g": 60,
    "b": 159
  },
  "hsl": {
    "h": 242.424,
    "s": 45.205,
    "l": 42.941
  },
  "oklch": {
    "l": 0.42164,
    "c": 0.15551,
    "h": 279.2
  },
  "luminance": 0.06825
}

Semantic roles & 50–950 ramp

primary
#403C9F
secondary
#B8BB7C
accent
#D553D0
background
#F8F6FB
surface
#EFECF6
border
#CAC7D0
text
#0B0812
muted
#7C7B81

Preview Lab

Preview with #403C9F

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

Preview Lab → · Contrast checker → · Palette generator →

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