#403AB5#403AB5

#403AB5 is a dark, vivid blue. Relative luminance 0.075; OKLCH L 43.8% C 0.187 H 277.5°. Best body text is #FFFFFF at 8.43:1 contrast (WCAG AA passes).

Color values

HEX#403AB5
RGBrgb(64, 58, 181)
HSLhsl(243, 51%, 47%)
HSVhsv(243, 68%, 71%)
CMYKcmyk(64.6%, 68%, 0%, 29%)
CIE-LABlab(32.81, 40.19, -64.28)
CIE-LCHlch(32.81, 75.81, 302.02°)
OKLaboklab(43.77% 0.0244 -0.1854)
OKLCHoklch(43.77% 0.187 277.5)
XYZxyz(11.9652, 7.4513, 44.5148)
Luminance0.0745 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403AB5 #AFB53A
analogous
#3A72B5 #403AB5 #7E3AB5
triadic
#403AB5 #B5403A #3AB540
tetradic
#403AB5 #B53A72 #AFB53A #3AB57E
square
#403AB5 #B53A72 #AFB53A #3AB57E
split-complementary
#403AB5 #B57E3A #72B53A
monochromatic
#1F1C58 #302B87 #403AB5 #6560CC #928EDB

Accessibility & contrast

On white

8.43
#403AB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#403AB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403AB5
8.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403AB5#FFFFFF#000000##FFFFFF
##403AB51.008.432.498.43
#FFFFFF8.431.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B9
Deuteranopia (green-blind)
#0048B3
Tritanopia (blue-blind)
#005B73
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #403ab5;
/* rgb */ color: rgb(64, 58, 181);
/* oklch */ color: oklch(43.8% 0.187 277.5);
Tailwind
colors: {
  custom: {
    50: '#8371cc',
    500: '#403ab5',
    950: '#000000',
  },
}
SCSS
$custom: #403ab5;
$custom-light: #8371cc;
$custom-dark: #000000;
JSON
{
  "hex": "#403ab5",
  "rgb": {
    "r": 64,
    "g": 58,
    "b": 181
  },
  "hsl": {
    "h": 242.927,
    "s": 51.464,
    "l": 46.863
  },
  "oklch": {
    "l": 0.4377,
    "c": 0.18703,
    "h": 277.5
  },
  "luminance": 0.07452
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #403AB5

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

Preview Lab → · Contrast checker → · Palette generator →

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