#403AA6#403AA6

#403AA6 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.4% C 0.167 H 279.0°. Best body text is #FFFFFF at 8.85:1 contrast (WCAG AA passes).

Color values

HEX#403AA6
RGBrgb(64, 58, 166)
HSLhsl(243, 48%, 44%)
HSVhsv(243, 65%, 65%)
CMYKcmyk(61.4%, 65.1%, 0%, 34.9%)
CIE-LABlab(31.51, 35.21, -57.46)
CIE-LCHlch(31.51, 67.39, 301.50°)
OKLaboklab(42.42% 0.0261 -0.1654)
OKLCHoklch(42.42% 0.167 279)
XYZxyz(10.5081, 6.8685, 36.8410)
Luminance0.0687 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403AA6 #A0A63A
analogous
#3A6AA6 #403AA6 #763AA6
triadic
#403AA6 #A6403A #3AA640
tetradic
#403AA6 #A63A6A #A0A63A #3AA676
square
#403AA6 #A63A6A #A0A63A #3AA676
split-complementary
#403AA6 #A6763A #6AA63A
monochromatic
#1D1A4B #2F2A79 #403AA6 #5E58C5 #8A86D5

Accessibility & contrast

On white

8.85
#403AA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #403AA6
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403AA6#FFFFFF#000000##FFFFFF
##403AA61.008.852.378.85
#FFFFFF8.851.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.851.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #403aa6;
/* rgb */ color: rgb(64, 58, 166);
/* oklch */ color: oklch(42.4% 0.167 279.0);
Tailwind
colors: {
  custom: {
    50: '#8071c1',
    500: '#403aa6',
    950: '#000000',
  },
}
SCSS
$custom: #403aa6;
$custom-light: #8071c1;
$custom-dark: #000000;
JSON
{
  "hex": "#403aa6",
  "rgb": {
    "r": 64,
    "g": 58,
    "b": 166
  },
  "hsl": {
    "h": 243.333,
    "s": 48.214,
    "l": 43.922
  },
  "oklch": {
    "l": 0.42419,
    "c": 0.16749,
    "h": 279
  },
  "luminance": 0.06869
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #403AA6

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

Preview Lab → · Contrast checker → · Palette generator →

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