#403FA6#403FA6

#403FA6 is a dark, vivid blue. Relative luminance 0.074; OKLCH L 43.3% C 0.161 H 277.7°. Best body text is #FFFFFF at 8.47:1 contrast (WCAG AA passes).

Color values

HEX#403FA6
RGBrgb(64, 63, 166)
HSLhsl(241, 45%, 45%)
HSVhsv(241, 62%, 65%)
CMYKcmyk(61.4%, 62%, 0%, 34.9%)
CIE-LABlab(32.70, 32.08, -55.52)
CIE-LCHlch(32.70, 64.12, 300.02°)
OKLaboklab(43.29% 0.0216 -0.1597)
OKLCHoklch(43.29% 0.161 277.7)
XYZxyz(10.7726, 7.3974, 36.9292)
Luminance0.0740 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403FA6 #A5A63F
analogous
#3F71A6 #403FA6 #743FA6
triadic
#403FA6 #A6403F #3FA640
tetradic
#403FA6 #A63F71 #A5A63F #3FA674
square
#403FA6 #A63F71 #A5A63F #3FA674
split-complementary
#403FA6 #A6743F #71A63F
monochromatic
#1E1D4D #2F2E7A #403FA6 #6160C3 #8D8CD3

Accessibility & contrast

On white

8.47
#403FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#403FA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403FA6
8.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403FA6#FFFFFF#000000##FFFFFF
##403FA61.008.472.488.47
#FFFFFF8.471.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A9
Deuteranopia (green-blind)
#0049A4
Tritanopia (blue-blind)
#00586C
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #403fa6;
/* rgb */ color: rgb(64, 63, 166);
/* oklch */ color: oklch(43.3% 0.161 277.7);
Tailwind
colors: {
  custom: {
    50: '#8074c1',
    500: '#403fa6',
    950: '#000000',
  },
}
SCSS
$custom: #403fa6;
$custom-light: #8074c1;
$custom-dark: #000000;
JSON
{
  "hex": "#403fa6",
  "rgb": {
    "r": 64,
    "g": 63,
    "b": 166
  },
  "hsl": {
    "h": 240.583,
    "s": 44.978,
    "l": 44.902
  },
  "oklch": {
    "l": 0.43289,
    "c": 0.16118,
    "h": 277.7
  },
  "luminance": 0.07398
}

Semantic roles & 50–950 ramp

primary
#403FA6
secondary
#BEBE83
accent
#D553D3
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0812
muted
#7C7B81

Preview Lab

Preview with #403FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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