#403A97#403A97

#403A97 is a dark, vivid blue. Relative luminance 0.064; OKLCH L 41.1% C 0.147 H 280.6°. Best body text is #FFFFFF at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#403A97
RGBrgb(64, 58, 151)
HSLhsl(244, 44%, 41%)
HSVhsv(244, 62%, 59%)
CMYKcmyk(57.6%, 61.6%, 0%, 40.8%)
CIE-LABlab(30.28, 30.19, -50.37)
CIE-LCHlch(30.28, 58.72, 300.94°)
OKLaboklab(41.14% 0.0272 -0.1446)
OKLCHoklch(41.14% 0.147 280.6)
XYZxyz(9.2116, 6.3499, 30.0124)
Luminance0.0635 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403A97 #91973A
analogous
#3A6297 #403A97 #6E3A97
triadic
#403A97 #97403A #3A9740
tetradic
#403A97 #973A62 #91973A #3A976E
square
#403A97 #973A62 #91973A #3A976E
split-complementary
#403A97 #976E3A #62973A
monochromatic
#1B183F #2D296B #403A97 #5952BC #837ECD

Accessibility & contrast

On white

9.25
#403A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#403A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403A97
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403A97#FFFFFF#000000##FFFFFF
##403A971.009.252.279.25
#FFFFFF9.251.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9A
Deuteranopia (green-blind)
#004495
Tritanopia (blue-blind)
#115063
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #403a97;
/* rgb */ color: rgb(64, 58, 151);
/* oklch */ color: oklch(41.1% 0.147 280.6);
Tailwind
colors: {
  custom: {
    50: '#7d70b6',
    500: '#403a97',
    950: '#000000',
  },
}
SCSS
$custom: #403a97;
$custom-light: #7d70b6;
$custom-dark: #000000;
JSON
{
  "hex": "#403a97",
  "rgb": {
    "r": 64,
    "g": 58,
    "b": 151
  },
  "hsl": {
    "h": 243.871,
    "s": 44.498,
    "l": 40.98
  },
  "oklch": {
    "l": 0.41138,
    "c": 0.14714,
    "h": 280.6
  },
  "luminance": 0.0635
}

Semantic roles & 50–950 ramp

primary
#403A97
secondary
#B3B776
accent
#D454CC
background
#F8F6FB
surface
#EFECF6
border
#CAC7D0
text
#0A0711
muted
#7C7A80

Preview Lab

Preview with #403A97

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

Preview Lab → · Contrast checker → · Palette generator →

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