#403C9C#403C9C

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

Color values

HEX#403C9C
RGBrgb(64, 60, 156)
HSLhsl(243, 44%, 42%)
HSVhsv(243, 62%, 61%)
CMYKcmyk(59%, 61.5%, 0%, 38.8%)
CIE-LABlab(31.16, 30.60, -51.97)
CIE-LCHlch(31.16, 60.31, 300.49°)
OKLaboklab(41.91% 0.0249 -0.1493)
OKLCHoklch(41.91% 0.151 279.5)
XYZxyz(9.7291, 6.7213, 32.2307)
Luminance0.0672 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403C9C #989C3C
analogous
#3C689C #403C9C #703C9C
triadic
#403C9C #9C403C #3C9C40
tetradic
#403C9C #9C3C68 #989C3C #3C9C70
square
#403C9C #9C3C68 #989C3C #3C9C70
split-complementary
#403C9C #9C703C #689C3C
monochromatic
#1C1A44 #2E2B70 #403C9C #5B57BE #8683CF

Accessibility & contrast

On white

8.96
#403C9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#403C9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403C9C
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403C9C#FFFFFF#000000##FFFFFF
##403C9C1.008.962.348.96
#FFFFFF8.961.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9F
Deuteranopia (green-blind)
#00469A
Tritanopia (blue-blind)
#055366
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #403c9c;
/* rgb */ color: rgb(64, 60, 156);
/* oklch */ color: oklch(41.9% 0.151 279.5);
Tailwind
colors: {
  custom: {
    50: '#7e72ba',
    500: '#403c9c',
    950: '#000000',
  },
}
SCSS
$custom: #403c9c;
$custom-light: #7e72ba;
$custom-dark: #000000;
JSON
{
  "hex": "#403c9c",
  "rgb": {
    "r": 64,
    "g": 60,
    "b": 156
  },
  "hsl": {
    "h": 242.5,
    "s": 44.444,
    "l": 42.353
  },
  "oklch": {
    "l": 0.41913,
    "c": 0.15139,
    "h": 279.5
  },
  "luminance": 0.06722
}

Semantic roles & 50–950 ramp

primary
#403C9C
secondary
#B7B97A
accent
#D454CF
background
#F8F6FB
surface
#EFECF6
border
#CAC7D0
text
#0B0812
muted
#7C7B81

Preview Lab

Preview with #403C9C

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

Preview Lab → · Contrast checker → · Palette generator →

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