#403C9A#403C9A

#403C9A is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.7% C 0.149 H 279.7°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#403C9A
RGBrgb(64, 60, 154)
HSLhsl(243, 44%, 42%)
HSVhsv(243, 61%, 60%)
CMYKcmyk(58.4%, 61%, 0%, 39.6%)
CIE-LABlab(31.01, 29.93, -51.01)
CIE-LCHlch(31.01, 59.14, 300.40°)
OKLaboklab(41.75% 0.025 -0.1465)
OKLCHoklch(41.75% 0.149 279.7)
XYZxyz(9.5611, 6.6541, 31.3461)
Luminance0.0665 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403C9A #969A3C
analogous
#3C679A #403C9A #6F3C9A
triadic
#403C9A #9A403C #3C9A40
tetradic
#403C9A #9A3C67 #969A3C #3C9A6F
square
#403C9A #9A3C67 #969A3C #3C9A6F
split-complementary
#403C9A #9A6F3C #679A3C
monochromatic
#1B1A42 #2E2B6E #403C9A #5A56BD #8582CE

Accessibility & contrast

On white

9.01
#403C9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#403C9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403C9A
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403C9A#FFFFFF#000000##FFFFFF
##403C9A1.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9D
Deuteranopia (green-blind)
#004598
Tritanopia (blue-blind)
#0A5365
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #403c9a;
/* rgb */ color: rgb(64, 60, 154);
/* oklch */ color: oklch(41.7% 0.149 279.7);
Tailwind
colors: {
  custom: {
    50: '#7e72b8',
    500: '#403c9a',
    950: '#000000',
  },
}
SCSS
$custom: #403c9a;
$custom-light: #7e72b8;
$custom-dark: #000000;
JSON
{
  "hex": "#403c9a",
  "rgb": {
    "r": 64,
    "g": 60,
    "b": 154
  },
  "hsl": {
    "h": 242.553,
    "s": 43.925,
    "l": 41.961
  },
  "oklch": {
    "l": 0.41748,
    "c": 0.14862,
    "h": 279.7
  },
  "luminance": 0.06655
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #403C9A

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

Preview Lab → · Contrast checker → · Palette generator →

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