#403CAC#403CAC

#403CAC is a dark, vivid blue. Relative luminance 0.073; OKLCH L 43.3% C 0.173 H 277.9°. Best body text is #FFFFFF at 8.54:1 contrast (WCAG AA passes).

Color values

HEX#403CAC
RGBrgb(64, 60, 172)
HSLhsl(242, 48%, 45%)
HSVhsv(242, 65%, 67%)
CMYKcmyk(62.8%, 65.1%, 0%, 32.5%)
CIE-LABlab(32.48, 35.98, -59.47)
CIE-LCHlch(32.48, 69.50, 301.18°)
OKLaboklab(43.29% 0.0238 -0.1713)
OKLCHoklch(43.29% 0.173 277.9)
XYZxyz(11.1742, 7.2994, 39.8418)
Luminance0.0730 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403CAC #A8AC3C
analogous
#3C70AC #403CAC #783CAC
triadic
#403CAC #AC403C #3CAC40
tetradic
#403CAC #AC3C70 #A8AC3C #3CAC78
square
#403CAC #AC3C70 #A8AC3C #3CAC78
split-complementary
#403CAC #AC783C #70AC3C
monochromatic
#1E1C51 #2F2C7F #403CAC #625EC7 #8E8CD7

Accessibility & contrast

On white

8.54
#403CAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#403CAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403CAC
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403CAC#FFFFFF#000000##FFFFFF
##403CAC1.008.542.468.54
#FFFFFF8.541.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B0
Deuteranopia (green-blind)
#0048AA
Tritanopia (blue-blind)
#00596E
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #403cac;
/* rgb */ color: rgb(64, 60, 172);
/* oklch */ color: oklch(43.3% 0.173 277.9);
Tailwind
colors: {
  custom: {
    50: '#8172c6',
    500: '#403cac',
    950: '#000000',
  },
}
SCSS
$custom: #403cac;
$custom-light: #8172c6;
$custom-dark: #000000;
JSON
{
  "hex": "#403cac",
  "rgb": {
    "r": 64,
    "g": 60,
    "b": 172
  },
  "hsl": {
    "h": 242.143,
    "s": 48.276,
    "l": 45.49
  },
  "oklch": {
    "l": 0.43285,
    "c": 0.17298,
    "h": 277.9
  },
  "luminance": 0.073
}

Semantic roles & 50–950 ramp

primary
#403CAC
secondary
#BFC182
accent
#D850D3
background
#F8F6FC
surface
#F0ECF8
border
#CBC7D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #403CAC

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

Preview Lab → · Contrast checker → · Palette generator →

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