#403CA5#403CA5

#403CA5 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.7% C 0.164 H 278.6°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#403CA5
RGBrgb(64, 60, 165)
HSLhsl(242, 47%, 44%)
HSVhsv(242, 64%, 65%)
CMYKcmyk(61.2%, 63.6%, 0%, 35.3%)
CIE-LABlab(31.89, 33.63, -56.23)
CIE-LCHlch(31.89, 65.52, 300.88°)
OKLaboklab(42.68% 0.0244 -0.1618)
OKLCHoklch(42.68% 0.164 278.6)
XYZxyz(10.5196, 7.0375, 36.3941)
Luminance0.0704 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403CA5 #A1A53C
analogous
#3C6DA5 #403CA5 #753CA5
triadic
#403CA5 #A5403C #3CA540
tetradic
#403CA5 #A53C6D #A1A53C #3CA575
square
#403CA5 #A53C6D #A1A53C #3CA575
split-complementary
#403CA5 #A5753C #6DA53C
monochromatic
#1D1B4B #2F2C78 #403CA5 #5F5BC3 #8B88D4

Accessibility & contrast

On white

8.72
#403CA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#403CA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403CA5
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403CA5#FFFFFF#000000##FFFFFF
##403CA51.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA8
Deuteranopia (green-blind)
#0047A3
Tritanopia (blue-blind)
#00566B
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #403ca5;
/* rgb */ color: rgb(64, 60, 165);
/* oklch */ color: oklch(42.7% 0.164 278.6);
Tailwind
colors: {
  custom: {
    50: '#8072c1',
    500: '#403ca5',
    950: '#000000',
  },
}
SCSS
$custom: #403ca5;
$custom-light: #8072c1;
$custom-dark: #000000;
JSON
{
  "hex": "#403ca5",
  "rgb": {
    "r": 64,
    "g": 60,
    "b": 165
  },
  "hsl": {
    "h": 242.286,
    "s": 46.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.42675,
    "c": 0.16365,
    "h": 278.6
  },
  "luminance": 0.07038
}

Semantic roles & 50–950 ramp

primary
#403CA5
secondary
#BCBE7F
accent
#D651D1
background
#F8F6FB
surface
#EFECF7
border
#CAC7D0
text
#0B0812
muted
#7C7B81

Preview Lab

Preview with #403CA5

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

Preview Lab → · Contrast checker → · Palette generator →

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