#403C9B#403C9B

#403C9B is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.8% C 0.150 H 279.6°. Best body text is #FFFFFF at 8.98:1 contrast (WCAG AA passes).

Color values

HEX#403C9B
RGBrgb(64, 60, 155)
HSLhsl(243, 44%, 42%)
HSVhsv(243, 61%, 61%)
CMYKcmyk(58.7%, 61.3%, 0%, 39.2%)
CIE-LABlab(31.08, 30.26, -51.49)
CIE-LCHlch(31.08, 59.73, 300.44°)
OKLaboklab(41.83% 0.025 -0.1479)
OKLCHoklch(41.83% 0.15 279.6)
XYZxyz(9.6447, 6.6876, 31.7866)
Luminance0.0669 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403C9B #979B3C
analogous
#3C689B #403C9B #6F3C9B
triadic
#403C9B #9B403C #3C9B40
tetradic
#403C9B #9B3C68 #979B3C #3C9B6F
square
#403C9B #9B3C68 #979B3C #3C9B6F
split-complementary
#403C9B #9B6F3C #689B3C
monochromatic
#1C1A43 #2E2B6F #403C9B #5B56BE #8683CF

Accessibility & contrast

On white

8.98
#403C9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #403C9B
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403C9B#FFFFFF#000000##FFFFFF
##403C9B1.008.982.348.98
#FFFFFF8.981.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9E
Deuteranopia (green-blind)
#004599
Tritanopia (blue-blind)
#085365
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #403c9b;
/* rgb */ color: rgb(64, 60, 155);
/* oklch */ color: oklch(41.8% 0.150 279.6);
Tailwind
colors: {
  custom: {
    50: '#7e72b9',
    500: '#403c9b',
    950: '#000000',
  },
}
SCSS
$custom: #403c9b;
$custom-light: #7e72b9;
$custom-dark: #000000;
JSON
{
  "hex": "#403c9b",
  "rgb": {
    "r": 64,
    "g": 60,
    "b": 155
  },
  "hsl": {
    "h": 242.526,
    "s": 44.186,
    "l": 42.157
  },
  "oklch": {
    "l": 0.4183,
    "c": 0.15,
    "h": 279.6
  },
  "luminance": 0.06688
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #403C9B

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

Preview Lab → · Contrast checker → · Palette generator →

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