#403CA8#403CA8

#403CA8 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.9% C 0.168 H 278.3°. Best body text is #FFFFFF at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#403CA8
RGBrgb(64, 60, 168)
HSLhsl(242, 47%, 45%)
HSVhsv(242, 64%, 66%)
CMYKcmyk(61.9%, 64.3%, 0%, 34.1%)
CIE-LABlab(32.14, 34.64, -57.62)
CIE-LCHlch(32.14, 67.23, 301.01°)
OKLaboklab(42.94% 0.0242 -0.1659)
OKLCHoklch(42.94% 0.168 278.3)
XYZxyz(10.7958, 7.1480, 37.8490)
Luminance0.0715 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403CA8 #A4A83C
analogous
#3C6EA8 #403CA8 #763CA8
triadic
#403CA8 #A8403C #3CA840
tetradic
#403CA8 #A83C6E #A4A83C #3CA876
square
#403CA8 #A83C6E #A4A83C #3CA876
split-complementary
#403CA8 #A8763C #6EA83C
monochromatic
#1E1C4E #2F2C7B #403CA8 #605CC5 #8C89D5

Accessibility & contrast

On white

8.64
#403CA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#403CA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403CA8
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403CA8#FFFFFF#000000##FFFFFF
##403CA81.008.642.438.64
#FFFFFF8.641.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AB
Deuteranopia (green-blind)
#0047A6
Tritanopia (blue-blind)
#00576C
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #403ca8;
/* rgb */ color: rgb(64, 60, 168);
/* oklch */ color: oklch(42.9% 0.168 278.3);
Tailwind
colors: {
  custom: {
    50: '#8072c3',
    500: '#403ca8',
    950: '#000000',
  },
}
SCSS
$custom: #403ca8;
$custom-light: #8072c3;
$custom-dark: #000000;
JSON
{
  "hex": "#403ca8",
  "rgb": {
    "r": 64,
    "g": 60,
    "b": 168
  },
  "hsl": {
    "h": 242.222,
    "s": 47.368,
    "l": 44.706
  },
  "oklch": {
    "l": 0.42935,
    "c": 0.16766,
    "h": 278.3
  },
  "luminance": 0.07149
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #403CA8

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

Preview Lab → · Contrast checker → · Palette generator →

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