#403FAB#403FAB

#403FAB is a dark, vivid blue. Relative luminance 0.076; OKLCH L 43.7% C 0.168 H 277.3°. Best body text is #FFFFFF at 8.34:1 contrast (WCAG AA passes).

Color values

HEX#403FAB
RGBrgb(64, 63, 171)
HSLhsl(241, 46%, 46%)
HSVhsv(241, 63%, 67%)
CMYKcmyk(62.6%, 63.2%, 0%, 32.9%)
CIE-LABlab(33.10, 33.78, -57.85)
CIE-LCHlch(33.10, 66.99, 300.28°)
OKLaboklab(43.71% 0.0213 -0.1666)
OKLCHoklch(43.71% 0.168 277.3)
XYZxyz(11.2402, 7.5844, 39.3918)
Luminance0.0759 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403FAB #AAAB3F
analogous
#3F74AB #403FAB #763FAB
triadic
#403FAB #AB403F #3FAB40
tetradic
#403FAB #AB3F74 #AAAB3F #3FAB76
square
#403FAB #AB3F74 #AAAB3F #3FAB76
split-complementary
#403FAB #AB763F #74AB3F
monochromatic
#1F1E52 #2F2F7E #403FAB #6362C5 #8F8FD6

Accessibility & contrast

On white

8.34
#403FAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#403FAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403FAB
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403FAB#FFFFFF#000000##FFFFFF
##403FAB1.008.342.528.34
#FFFFFF8.341.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AE
Deuteranopia (green-blind)
#0049A9
Tritanopia (blue-blind)
#005A6F
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #403fab;
/* rgb */ color: rgb(64, 63, 171);
/* oklch */ color: oklch(43.7% 0.168 277.3);
Tailwind
colors: {
  custom: {
    50: '#8174c5',
    500: '#403fab',
    950: '#000000',
  },
}
SCSS
$custom: #403fab;
$custom-light: #8174c5;
$custom-dark: #000000;
JSON
{
  "hex": "#403fab",
  "rgb": {
    "r": 64,
    "g": 63,
    "b": 171
  },
  "hsl": {
    "h": 240.556,
    "s": 46.154,
    "l": 45.882
  },
  "oklch": {
    "l": 0.43714,
    "c": 0.16793,
    "h": 277.3
  },
  "luminance": 0.07585
}

Semantic roles & 50–950 ramp

primary
#403FAB
secondary
#C0C185
accent
#D652D5
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #403FAB

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

Preview Lab → · Contrast checker → · Palette generator →

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