#403CAA#403CAA

#403CAA is a dark, vivid blue. Relative luminance 0.072; OKLCH L 43.1% C 0.170 H 278.1°. Best body text is #FFFFFF at 8.59:1 contrast (WCAG AA passes).

Color values

HEX#403CAA
RGBrgb(64, 60, 170)
HSLhsl(242, 48%, 45%)
HSVhsv(242, 65%, 67%)
CMYKcmyk(62.4%, 64.7%, 0%, 33.3%)
CIE-LABlab(32.31, 35.31, -58.55)
CIE-LCHlch(32.31, 68.37, 301.09°)
OKLaboklab(43.11% 0.024 -0.1686)
OKLCHoklch(43.11% 0.17 278.1)
XYZxyz(10.9836, 7.2231, 38.8378)
Luminance0.0722 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403CAA #A6AA3C
analogous
#3C6FAA #403CAA #773CAA
triadic
#403CAA #AA403C #3CAA40
tetradic
#403CAA #AA3C6F #A6AA3C #3CAA77
square
#403CAA #AA3C6F #A6AA3C #3CAA77
split-complementary
#403CAA #AA773C #6FAA3C
monochromatic
#1E1C50 #2F2C7D #403CAA #615DC6 #8D8BD6

Accessibility & contrast

On white

8.59
#403CAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#403CAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403CAA
8.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403CAA#FFFFFF#000000##FFFFFF
##403CAA1.008.592.448.59
#FFFFFF8.591.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AD
Deuteranopia (green-blind)
#0047A8
Tritanopia (blue-blind)
#00586D
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #403caa;
/* rgb */ color: rgb(64, 60, 170);
/* oklch */ color: oklch(43.1% 0.170 278.1);
Tailwind
colors: {
  custom: {
    50: '#8172c4',
    500: '#403caa',
    950: '#000000',
  },
}
SCSS
$custom: #403caa;
$custom-light: #8172c4;
$custom-dark: #000000;
JSON
{
  "hex": "#403caa",
  "rgb": {
    "r": 64,
    "g": 60,
    "b": 170
  },
  "hsl": {
    "h": 242.182,
    "s": 47.826,
    "l": 45.098
  },
  "oklch": {
    "l": 0.43109,
    "c": 0.17033,
    "h": 278.1
  },
  "luminance": 0.07224
}

Semantic roles & 50–950 ramp

primary
#403CAA
secondary
#BEC081
accent
#D750D3
background
#F8F6FC
surface
#F0ECF8
border
#CBC7D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #403CAA

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

Preview Lab → · Contrast checker → · Palette generator →

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