#403CA7#403CA7

#403CA7 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.8% C 0.166 H 278.4°. Best body text is #FFFFFF at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#403CA7
RGBrgb(64, 60, 167)
HSLhsl(242, 47%, 45%)
HSVhsv(242, 64%, 65%)
CMYKcmyk(61.7%, 64.1%, 0%, 34.5%)
CIE-LABlab(32.06, 34.30, -57.16)
CIE-LCHlch(32.06, 66.66, 300.97°)
OKLaboklab(42.85% 0.0243 -0.1645)
OKLCHoklch(42.85% 0.166 278.4)
XYZxyz(10.7030, 7.1109, 37.3603)
Luminance0.0711 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403CA7 #A3A73C
analogous
#3C6EA7 #403CA7 #763CA7
triadic
#403CA7 #A7403C #3CA740
tetradic
#403CA7 #A73C6E #A3A73C #3CA776
square
#403CA7 #A73C6E #A3A73C #3CA776
split-complementary
#403CA7 #A7763C #6EA73C
monochromatic
#1D1C4D #2F2C7A #403CA7 #605CC4 #8C89D5

Accessibility & contrast

On white

8.67
#403CA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#403CA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403CA7
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403CA7#FFFFFF#000000##FFFFFF
##403CA71.008.672.428.67
#FFFFFF8.671.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AA
Deuteranopia (green-blind)
#0047A5
Tritanopia (blue-blind)
#00576C
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #403ca7;
/* rgb */ color: rgb(64, 60, 167);
/* oklch */ color: oklch(42.8% 0.166 278.4);
Tailwind
colors: {
  custom: {
    50: '#8072c2',
    500: '#403ca7',
    950: '#000000',
  },
}
SCSS
$custom: #403ca7;
$custom-light: #8072c2;
$custom-dark: #000000;
JSON
{
  "hex": "#403ca7",
  "rgb": {
    "r": 64,
    "g": 60,
    "b": 167
  },
  "hsl": {
    "h": 242.243,
    "s": 47.137,
    "l": 44.51
  },
  "oklch": {
    "l": 0.42848,
    "c": 0.16633,
    "h": 278.4
  },
  "luminance": 0.07112
}

Semantic roles & 50–950 ramp

primary
#403CA7
secondary
#BDBF80
accent
#D751D2
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0812
muted
#7C7B81

Preview Lab

Preview with #403CA7

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

Preview Lab → · Contrast checker → · Palette generator →

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