#403AA8#403AA8

#403AA8 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.6% C 0.170 H 278.8°. Best body text is #FFFFFF at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#403AA8
RGBrgb(64, 58, 168)
HSLhsl(243, 49%, 44%)
HSVhsv(243, 65%, 66%)
CMYKcmyk(61.9%, 65.5%, 0%, 34.1%)
CIE-LABlab(31.68, 35.88, -58.38)
CIE-LCHlch(31.68, 68.53, 301.57°)
OKLaboklab(42.6% 0.0259 -0.1681)
OKLCHoklch(42.6% 0.17 278.8)
XYZxyz(10.6930, 6.9424, 37.8147)
Luminance0.0694 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403AA8 #A2A83A
analogous
#3A6BA8 #403AA8 #773AA8
triadic
#403AA8 #A8403A #3AA840
tetradic
#403AA8 #A83A6B #A2A83A #3AA877
square
#403AA8 #A83A6B #A2A83A #3AA877
split-complementary
#403AA8 #A8773A #6BA83A
monochromatic
#1D1B4D #2F2A7B #403AA8 #5F59C6 #8B87D6

Accessibility & contrast

On white

8.79
#403AA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#403AA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403AA8
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403AA8#FFFFFF#000000##FFFFFF
##403AA81.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAB
Deuteranopia (green-blind)
#0046A6
Tritanopia (blue-blind)
#00566C
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #403aa8;
/* rgb */ color: rgb(64, 58, 168);
/* oklch */ color: oklch(42.6% 0.170 278.8);
Tailwind
colors: {
  custom: {
    50: '#8171c3',
    500: '#403aa8',
    950: '#000000',
  },
}
SCSS
$custom: #403aa8;
$custom-light: #8171c3;
$custom-dark: #000000;
JSON
{
  "hex": "#403aa8",
  "rgb": {
    "r": 64,
    "g": 58,
    "b": 168
  },
  "hsl": {
    "h": 243.273,
    "s": 48.673,
    "l": 44.314
  },
  "oklch": {
    "l": 0.42595,
    "c": 0.17014,
    "h": 278.8
  },
  "luminance": 0.06943
}

Semantic roles & 50–950 ramp

primary
#403AA8
secondary
#BCC07E
accent
#D850D1
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #403AA8

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

Preview Lab → · Contrast checker → · Palette generator →

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