#403AA5#403AA5

#403AA5 is a dark, vivid blue. Relative luminance 0.068; OKLCH L 42.3% C 0.166 H 279.1°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#403AA5
RGBrgb(64, 58, 165)
HSLhsl(243, 48%, 44%)
HSVhsv(243, 65%, 65%)
CMYKcmyk(61.2%, 64.8%, 0%, 35.3%)
CIE-LABlab(31.42, 34.88, -56.99)
CIE-LCHlch(31.42, 66.82, 301.46°)
OKLaboklab(42.33% 0.0262 -0.1641)
OKLCHoklch(42.33% 0.166 279.1)
XYZxyz(10.4168, 6.8319, 36.3598)
Luminance0.0683 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403AA5 #9FA53A
analogous
#3A69A5 #403AA5 #753AA5
triadic
#403AA5 #A5403A #3AA540
tetradic
#403AA5 #A53A69 #9FA53A #3AA575
square
#403AA5 #A53A69 #9FA53A #3AA575
split-complementary
#403AA5 #A5753A #69A53A
monochromatic
#1D1A4A #2E2A78 #403AA5 #5E58C4 #8A85D4

Accessibility & contrast

On white

8.87
#403AA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#403AA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403AA5
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403AA5#FFFFFF#000000##FFFFFF
##403AA51.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA8
Deuteranopia (green-blind)
#0046A3
Tritanopia (blue-blind)
#00556A
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #403aa5;
/* rgb */ color: rgb(64, 58, 165);
/* oklch */ color: oklch(42.3% 0.166 279.1);
Tailwind
colors: {
  custom: {
    50: '#8071c1',
    500: '#403aa5',
    950: '#000000',
  },
}
SCSS
$custom: #403aa5;
$custom-light: #8071c1;
$custom-dark: #000000;
JSON
{
  "hex": "#403aa5",
  "rgb": {
    "r": 64,
    "g": 58,
    "b": 165
  },
  "hsl": {
    "h": 243.364,
    "s": 47.982,
    "l": 43.725
  },
  "oklch": {
    "l": 0.42331,
    "c": 0.16616,
    "h": 279.1
  },
  "luminance": 0.06833
}

Semantic roles & 50–950 ramp

primary
#403AA5
secondary
#BBBE7D
accent
#D850D0
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0712
muted
#7C7A81

Preview Lab

Preview with #403AA5

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

Preview Lab → · Contrast checker → · Palette generator →

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