#403CA9#403CA9

#403CA9 is a dark, vivid blue. Relative luminance 0.072; OKLCH L 43.0% C 0.169 H 278.2°. Best body text is #FFFFFF at 8.62:1 contrast (WCAG AA passes).

Color values

HEX#403CA9
RGBrgb(64, 60, 169)
HSLhsl(242, 48%, 45%)
HSVhsv(242, 64%, 66%)
CMYKcmyk(62.1%, 64.5%, 0%, 33.7%)
CIE-LABlab(32.23, 34.97, -58.08)
CIE-LCHlch(32.23, 67.80, 301.05°)
OKLaboklab(43.02% 0.0241 -0.1673)
OKLCHoklch(43.02% 0.169 278.2)
XYZxyz(10.8893, 7.1854, 38.3415)
Luminance0.0719 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403CA9 #A5A93C
analogous
#3C6EA9 #403CA9 #773CA9
triadic
#403CA9 #A9403C #3CA940
tetradic
#403CA9 #A93C6E #A5A93C #3CA977
square
#403CA9 #A93C6E #A5A93C #3CA977
split-complementary
#403CA9 #A9773C #6EA93C
monochromatic
#1E1C4F #2F2C7C #403CA9 #615DC5 #8D8AD5

Accessibility & contrast

On white

8.62
#403CA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #403CA9
8.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403CA9#FFFFFF#000000##FFFFFF
##403CA91.008.622.448.62
#FFFFFF8.621.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AC
Deuteranopia (green-blind)
#0047A7
Tritanopia (blue-blind)
#00586D
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #403ca9;
/* rgb */ color: rgb(64, 60, 169);
/* oklch */ color: oklch(43.0% 0.169 278.2);
Tailwind
colors: {
  custom: {
    50: '#8172c3',
    500: '#403ca9',
    950: '#000000',
  },
}
SCSS
$custom: #403ca9;
$custom-light: #8172c3;
$custom-dark: #000000;
JSON
{
  "hex": "#403ca9",
  "rgb": {
    "r": 64,
    "g": 60,
    "b": 169
  },
  "hsl": {
    "h": 242.202,
    "s": 47.598,
    "l": 44.902
  },
  "oklch": {
    "l": 0.43022,
    "c": 0.169,
    "h": 278.2
  },
  "luminance": 0.07186
}

Semantic roles & 50–950 ramp

primary
#403CA9
secondary
#BEC081
accent
#D751D2
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #403CA9

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

Preview Lab → · Contrast checker → · Palette generator →

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