#403CA1#403CA1

#403CA1 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.3% C 0.158 H 279.0°. Best body text is #FFFFFF at 8.83:1 contrast (WCAG AA passes).

Color values

HEX#403CA1
RGBrgb(64, 60, 161)
HSLhsl(242, 46%, 43%)
HSVhsv(242, 63%, 63%)
CMYKcmyk(60.2%, 62.7%, 0%, 36.9%)
CIE-LABlab(31.56, 32.28, -54.35)
CIE-LCHlch(31.56, 63.21, 300.71°)
OKLaboklab(42.33% 0.0247 -0.1563)
OKLCHoklch(42.33% 0.158 279)
XYZxyz(10.1612, 6.8942, 34.5066)
Luminance0.0689 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403CA1 #9DA13C
analogous
#3C6AA1 #403CA1 #723CA1
triadic
#403CA1 #A1403C #3CA140
tetradic
#403CA1 #A13C6A #9DA13C #3CA172
square
#403CA1 #A13C6A #9DA13C #3CA172
split-complementary
#403CA1 #A1723C #6AA13C
monochromatic
#1D1B48 #2E2B74 #403CA1 #5D59C1 #8986D2

Accessibility & contrast

On white

8.83
#403CA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#403CA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403CA1
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403CA1#FFFFFF#000000##FFFFFF
##403CA11.008.832.388.83
#FFFFFF8.831.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA4
Deuteranopia (green-blind)
#00469F
Tritanopia (blue-blind)
#005568
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #403ca1;
/* rgb */ color: rgb(64, 60, 161);
/* oklch */ color: oklch(42.3% 0.158 279.0);
Tailwind
colors: {
  custom: {
    50: '#7f72be',
    500: '#403ca1',
    950: '#000000',
  },
}
SCSS
$custom: #403ca1;
$custom-light: #7f72be;
$custom-dark: #000000;
JSON
{
  "hex": "#403ca1",
  "rgb": {
    "r": 64,
    "g": 60,
    "b": 161
  },
  "hsl": {
    "h": 242.376,
    "s": 45.701,
    "l": 43.333
  },
  "oklch": {
    "l": 0.42333,
    "c": 0.15824,
    "h": 279
  },
  "luminance": 0.06895
}

Semantic roles & 50–950 ramp

primary
#403CA1
secondary
#B9BC7D
accent
#D552D0
background
#F8F6FB
surface
#EFECF7
border
#CAC7D0
text
#0B0812
muted
#7C7B81

Preview Lab

Preview with #403CA1

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

Preview Lab → · Contrast checker → · Palette generator →

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