#403FA7#403FA7

#403FA7 is a dark, vivid blue. Relative luminance 0.074; OKLCH L 43.4% C 0.163 H 277.6°. Best body text is #FFFFFF at 8.44:1 contrast (WCAG AA passes).

Color values

HEX#403FA7
RGBrgb(64, 63, 167)
HSLhsl(241, 45%, 45%)
HSVhsv(241, 62%, 65%)
CMYKcmyk(61.7%, 62.3%, 0%, 34.5%)
CIE-LABlab(32.78, 32.42, -55.99)
CIE-LCHlch(32.78, 64.70, 300.07°)
OKLaboklab(43.37% 0.0216 -0.1611)
OKLCHoklch(43.37% 0.163 277.6)
XYZxyz(10.8647, 7.4342, 37.4141)
Luminance0.0743 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403FA7 #A6A73F
analogous
#3F72A7 #403FA7 #743FA7
triadic
#403FA7 #A7403F #3FA740
tetradic
#403FA7 #A73F72 #A6A73F #3FA774
square
#403FA7 #A73F72 #A6A73F #3FA774
split-complementary
#403FA7 #A7743F #72A73F
monochromatic
#1E1D4E #2F2E7B #403FA7 #6160C3 #8D8DD4

Accessibility & contrast

On white

8.44
#403FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#403FA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403FA7
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403FA7#FFFFFF#000000##FFFFFF
##403FA71.008.442.498.44
#FFFFFF8.441.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AA
Deuteranopia (green-blind)
#0049A5
Tritanopia (blue-blind)
#00596D
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #403fa7;
/* rgb */ color: rgb(64, 63, 167);
/* oklch */ color: oklch(43.4% 0.163 277.6);
Tailwind
colors: {
  custom: {
    50: '#8074c2',
    500: '#403fa7',
    950: '#000000',
  },
}
SCSS
$custom: #403fa7;
$custom-light: #8074c2;
$custom-dark: #000000;
JSON
{
  "hex": "#403fa7",
  "rgb": {
    "r": 64,
    "g": 63,
    "b": 167
  },
  "hsl": {
    "h": 240.577,
    "s": 45.217,
    "l": 45.098
  },
  "oklch": {
    "l": 0.43373,
    "c": 0.16254,
    "h": 277.6
  },
  "luminance": 0.07435
}

Semantic roles & 50–950 ramp

primary
#403FA7
secondary
#BEBF83
accent
#D553D4
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0812
muted
#7C7B81

Preview Lab

Preview with #403FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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