#403F97#403F97

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

Color values

HEX#403F97
RGBrgb(64, 63, 151)
HSLhsl(241, 41%, 42%)
HSVhsv(241, 58%, 59%)
CMYKcmyk(57.6%, 58.3%, 0%, 40.8%)
CIE-LABlab(31.53, 26.98, -48.34)
CIE-LCHlch(31.53, 55.36, 299.17°)
OKLaboklab(42.06% 0.022 -0.1386)
OKLCHoklch(42.06% 0.14 279)
XYZxyz(9.4760, 6.8787, 30.1005)
Luminance0.0688 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403F97 #96973F
analogous
#3F6A97 #403F97 #6C3F97
triadic
#403F97 #97403F #3F9740
tetradic
#403F97 #973F6A #96973F #3F976C
square
#403F97 #973F6A #96973F #3F976C
split-complementary
#403F97 #976C3F #6A973F
monochromatic
#1B1B41 #2E2D6C #403F97 #5A59BA #8585CC

Accessibility & contrast

On white

8.84
#403F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#403F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403F97
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403F97#FFFFFF#000000##FFFFFF
##403F971.008.842.388.84
#FFFFFF8.841.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9A
Deuteranopia (green-blind)
#004795
Tritanopia (blue-blind)
#105464
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #403f97;
/* rgb */ color: rgb(64, 63, 151);
/* oklch */ color: oklch(42.1% 0.140 279.0);
Tailwind
colors: {
  custom: {
    50: '#7d74b6',
    500: '#403f97',
    950: '#000000',
  },
}
SCSS
$custom: #403f97;
$custom-light: #7d74b6;
$custom-dark: #000000;
JSON
{
  "hex": "#403f97",
  "rgb": {
    "r": 64,
    "g": 63,
    "b": 151
  },
  "hsl": {
    "h": 240.682,
    "s": 41.121,
    "l": 41.961
  },
  "oklch": {
    "l": 0.42061,
    "c": 0.14034,
    "h": 279
  },
  "luminance": 0.06879
}

Semantic roles & 50–950 ramp

primary
#403F97
secondary
#B6B67C
accent
#D157D0
background
#F8F7FB
surface
#EFEDF6
border
#CAC8D0
text
#0A0811
muted
#7C7B80

Preview Lab

Preview with #403F97

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

Preview Lab → · Contrast checker → · Palette generator →

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