#403AA4#403AA4

#403AA4 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 42.2% C 0.165 H 279.2°. Best body text is #FFFFFF at 8.90:1 contrast (WCAG AA passes).

Color values

HEX#403AA4
RGBrgb(64, 58, 164)
HSLhsl(243, 48%, 44%)
HSVhsv(243, 65%, 64%)
CMYKcmyk(61%, 64.6%, 0%, 35.7%)
CIE-LABlab(31.34, 34.54, -56.53)
CIE-LCHlch(31.34, 66.25, 301.43°)
OKLaboklab(42.24% 0.0263 -0.1627)
OKLCHoklch(42.24% 0.165 279.2)
XYZxyz(10.3261, 6.7957, 35.8823)
Luminance0.0680 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403AA4 #9EA43A
analogous
#3A69A4 #403AA4 #753AA4
triadic
#403AA4 #A4403A #3AA440
tetradic
#403AA4 #A43A69 #9EA43A #3AA475
square
#403AA4 #A43A69 #9EA43A #3AA475
split-complementary
#403AA4 #A4753A #69A43A
monochromatic
#1D1A4A #2E2A77 #403AA4 #5E57C4 #8985D4

Accessibility & contrast

On white

8.90
#403AA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#403AA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403AA4
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403AA4#FFFFFF#000000##FFFFFF
##403AA41.008.902.368.90
#FFFFFF8.901.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.901.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #403aa4;
/* rgb */ color: rgb(64, 58, 164);
/* oklch */ color: oklch(42.2% 0.165 279.2);
Tailwind
colors: {
  custom: {
    50: '#8071c0',
    500: '#403aa4',
    950: '#000000',
  },
}
SCSS
$custom: #403aa4;
$custom-light: #8071c0;
$custom-dark: #000000;
JSON
{
  "hex": "#403aa4",
  "rgb": {
    "r": 64,
    "g": 58,
    "b": 164
  },
  "hsl": {
    "h": 243.396,
    "s": 47.748,
    "l": 43.529
  },
  "oklch": {
    "l": 0.42244,
    "c": 0.16483,
    "h": 279.2
  },
  "luminance": 0.06796
}

Semantic roles & 50–950 ramp

primary
#403AA4
secondary
#BABE7C
accent
#D750D0
background
#F8F6FB
surface
#EFECF7
border
#CAC7D0
text
#0B0712
muted
#7C7A81

Preview Lab

Preview with #403AA4

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

Preview Lab → · Contrast checker → · Palette generator →

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