#403AB4#403AB4

#403AB4 is a dark, vivid blue. Relative luminance 0.074; OKLCH L 43.7% C 0.186 H 277.6°. Best body text is #FFFFFF at 8.46:1 contrast (WCAG AA passes).

Color values

HEX#403AB4
RGBrgb(64, 58, 180)
HSLhsl(243, 51%, 47%)
HSVhsv(243, 68%, 71%)
CMYKcmyk(64.4%, 67.8%, 0%, 29.4%)
CIE-LABlab(32.72, 39.86, -63.83)
CIE-LCHlch(32.72, 75.25, 301.98°)
OKLaboklab(43.68% 0.0246 -0.1841)
OKLCHoklch(43.68% 0.186 277.6)
XYZxyz(11.8630, 7.4104, 43.9764)
Luminance0.0741 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403AB4 #AEB43A
analogous
#3A71B4 #403AB4 #7D3AB4
triadic
#403AB4 #B4403A #3AB440
tetradic
#403AB4 #B43A71 #AEB43A #3AB47D
square
#403AB4 #B43A71 #AEB43A #3AB47D
split-complementary
#403AB4 #B47D3A #71B43A
monochromatic
#1F1C57 #302B86 #403AB4 #6560CC #928EDB

Accessibility & contrast

On white

8.46
#403AB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#403AB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403AB4
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403AB4#FFFFFF#000000##FFFFFF
##403AB41.008.462.488.46
#FFFFFF8.461.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B8
Deuteranopia (green-blind)
#0048B2
Tritanopia (blue-blind)
#005A72
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #403ab4;
/* rgb */ color: rgb(64, 58, 180);
/* oklch */ color: oklch(43.7% 0.186 277.6);
Tailwind
colors: {
  custom: {
    50: '#8371cb',
    500: '#403ab4',
    950: '#000000',
  },
}
SCSS
$custom: #403ab4;
$custom-light: #8371cb;
$custom-dark: #000000;
JSON
{
  "hex": "#403ab4",
  "rgb": {
    "r": 64,
    "g": 58,
    "b": 180
  },
  "hsl": {
    "h": 242.951,
    "s": 51.261,
    "l": 46.667
  },
  "oklch": {
    "l": 0.43678,
    "c": 0.18576,
    "h": 277.6
  },
  "luminance": 0.07411
}

Semantic roles & 50–950 ramp

primary
#403AB4
secondary
#C2C585
accent
#DB4DD4
background
#F8F6FC
surface
#F0ECF9
border
#CBC7D2
text
#0C0813
muted
#7D7B82

Preview Lab

Preview with #403AB4

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

Preview Lab → · Contrast checker → · Palette generator →

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