#403CA3#403CA3

#403CA3 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.5% C 0.161 H 278.8°. Best body text is #FFFFFF at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#403CA3
RGBrgb(64, 60, 163)
HSLhsl(242, 46%, 44%)
HSVhsv(242, 63%, 64%)
CMYKcmyk(60.7%, 63.2%, 0%, 36.1%)
CIE-LABlab(31.73, 32.96, -55.29)
CIE-LCHlch(31.73, 64.37, 300.80°)
OKLaboklab(42.5% 0.0246 -0.1591)
OKLCHoklch(42.5% 0.161 278.8)
XYZxyz(10.3390, 6.9653, 35.4428)
Luminance0.0697 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403CA3 #9FA33C
analogous
#3C6BA3 #403CA3 #733CA3
triadic
#403CA3 #A3403C #3CA340
tetradic
#403CA3 #A33C6B #9FA33C #3CA373
square
#403CA3 #A33C6B #9FA33C #3CA373
split-complementary
#403CA3 #A3733C #6BA33C
monochromatic
#1D1B4A #2E2C76 #403CA3 #5E5AC2 #8A87D3

Accessibility & contrast

On white

8.77
#403CA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#403CA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403CA3
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403CA3#FFFFFF#000000##FFFFFF
##403CA31.008.772.398.77
#FFFFFF8.771.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA6
Deuteranopia (green-blind)
#0046A1
Tritanopia (blue-blind)
#00566A
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #403ca3;
/* rgb */ color: rgb(64, 60, 163);
/* oklch */ color: oklch(42.5% 0.161 278.8);
Tailwind
colors: {
  custom: {
    50: '#7f72bf',
    500: '#403ca3',
    950: '#000000',
  },
}
SCSS
$custom: #403ca3;
$custom-light: #7f72bf;
$custom-dark: #000000;
JSON
{
  "hex": "#403ca3",
  "rgb": {
    "r": 64,
    "g": 60,
    "b": 163
  },
  "hsl": {
    "h": 242.33,
    "s": 46.188,
    "l": 43.725
  },
  "oklch": {
    "l": 0.42503,
    "c": 0.16095,
    "h": 278.8
  },
  "luminance": 0.06966
}

Semantic roles & 50–950 ramp

primary
#403CA3
secondary
#BBBD7E
accent
#D652D1
background
#F8F6FB
surface
#EFECF7
border
#CAC7D0
text
#0B0812
muted
#7C7B81

Preview Lab

Preview with #403CA3

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

Preview Lab → · Contrast checker → · Palette generator →

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