#403AB7#403AB7

#403AB7 is a dark, vivid blue. Relative luminance 0.075; OKLCH L 44.0% C 0.190 H 277.3°. Best body text is #FFFFFF at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#403AB7
RGBrgb(64, 58, 183)
HSLhsl(243, 52%, 47%)
HSVhsv(243, 68%, 72%)
CMYKcmyk(65%, 68.3%, 0%, 28.2%)
CIE-LABlab(32.99, 40.85, -65.17)
CIE-LCHlch(32.99, 76.91, 302.08°)
OKLaboklab(43.96% 0.0242 -0.188)
OKLCHoklch(43.96% 0.19 277.3)
XYZxyz(12.1719, 7.5340, 45.6033)
Luminance0.0754 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403AB7 #B1B73A
analogous
#3A73B7 #403AB7 #7F3AB7
triadic
#403AB7 #B7403A #3AB740
tetradic
#403AB7 #B73A73 #B1B73A #3AB77F
square
#403AB7 #B73A73 #B1B73A #3AB77F
split-complementary
#403AB7 #B77F3A #73B73A
monochromatic
#1F1D5A #302B89 #403AB7 #6661CD #9390DC

Accessibility & contrast

On white

8.38
#403AB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#403AB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403AB7
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403AB7#FFFFFF#000000##FFFFFF
##403AB71.008.382.518.38
#FFFFFF8.381.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053BB
Deuteranopia (green-blind)
#0048B5
Tritanopia (blue-blind)
#005B74
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #403ab7;
/* rgb */ color: rgb(64, 58, 183);
/* oklch */ color: oklch(44.0% 0.190 277.3);
Tailwind
colors: {
  custom: {
    50: '#8371ce',
    500: '#403ab7',
    950: '#000000',
  },
}
SCSS
$custom: #403ab7;
$custom-light: #8371ce;
$custom-dark: #000000;
JSON
{
  "hex": "#403ab7",
  "rgb": {
    "r": 64,
    "g": 58,
    "b": 183
  },
  "hsl": {
    "h": 242.88,
    "s": 51.867,
    "l": 47.255
  },
  "oklch": {
    "l": 0.43955,
    "c": 0.18959,
    "h": 277.3
  },
  "luminance": 0.07535
}

Semantic roles & 50–950 ramp

primary
#403AB7
secondary
#C3C786
accent
#DB4CD4
background
#F8F6FC
surface
#F0ECF9
border
#CBC7D2
text
#0C0814
muted
#7D7B82

Preview Lab

Preview with #403AB7

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

Preview Lab → · Contrast checker → · Palette generator →

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