#403CA2#403CA2

#403CA2 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.4% C 0.160 H 278.9°. Best body text is #FFFFFF at 8.80:1 contrast (WCAG AA passes).

Color values

HEX#403CA2
RGBrgb(64, 60, 162)
HSLhsl(242, 46%, 44%)
HSVhsv(242, 63%, 64%)
CMYKcmyk(60.5%, 63%, 0%, 36.5%)
CIE-LABlab(31.65, 32.62, -54.82)
CIE-LCHlch(31.65, 63.79, 300.75°)
OKLaboklab(42.42% 0.0246 -0.1577)
OKLCHoklch(42.42% 0.16 278.9)
XYZxyz(10.2497, 6.9296, 34.9728)
Luminance0.0693 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403CA2 #9EA23C
analogous
#3C6BA2 #403CA2 #733CA2
triadic
#403CA2 #A2403C #3CA240
tetradic
#403CA2 #A23C6B #9EA23C #3CA273
square
#403CA2 #A23C6B #9EA23C #3CA273
split-complementary
#403CA2 #A2733C #6BA23C
monochromatic
#1D1B49 #2E2B75 #403CA2 #5E59C2 #8986D2

Accessibility & contrast

On white

8.80
#403CA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#403CA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403CA2
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403CA2#FFFFFF#000000##FFFFFF
##403CA21.008.802.398.80
#FFFFFF8.801.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA5
Deuteranopia (green-blind)
#0046A0
Tritanopia (blue-blind)
#005569
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #403ca2;
/* rgb */ color: rgb(64, 60, 162);
/* oklch */ color: oklch(42.4% 0.160 278.9);
Tailwind
colors: {
  custom: {
    50: '#7f72be',
    500: '#403ca2',
    950: '#000000',
  },
}
SCSS
$custom: #403ca2;
$custom-light: #7f72be;
$custom-dark: #000000;
JSON
{
  "hex": "#403ca2",
  "rgb": {
    "r": 64,
    "g": 60,
    "b": 162
  },
  "hsl": {
    "h": 242.353,
    "s": 45.946,
    "l": 43.529
  },
  "oklch": {
    "l": 0.42418,
    "c": 0.15959,
    "h": 278.9
  },
  "luminance": 0.0693
}

Semantic roles & 50–950 ramp

primary
#403CA2
secondary
#BABC7D
accent
#D652D0
background
#F8F6FB
surface
#EFECF7
border
#CAC7D0
text
#0B0812
muted
#7C7B81

Preview Lab

Preview with #403CA2

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

Preview Lab → · Contrast checker → · Palette generator →

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