#403FA5#403FA5

#403FA5 is a dark, vivid blue. Relative luminance 0.074; OKLCH L 43.2% C 0.160 H 277.8°. Best body text is #FFFFFF at 8.49:1 contrast (WCAG AA passes).

Color values

HEX#403FA5
RGBrgb(64, 63, 165)
HSLhsl(241, 45%, 45%)
HSVhsv(241, 62%, 65%)
CMYKcmyk(61.2%, 61.8%, 0%, 35.3%)
CIE-LABlab(32.61, 31.74, -55.05)
CIE-LCHlch(32.61, 63.54, 299.97°)
OKLaboklab(43.21% 0.0217 -0.1583)
OKLCHoklch(43.21% 0.16 277.8)
XYZxyz(10.6812, 7.3608, 36.4479)
Luminance0.0736 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403FA5 #A4A53F
analogous
#3F71A5 #403FA5 #733FA5
triadic
#403FA5 #A5403F #3FA540
tetradic
#403FA5 #A53F71 #A4A53F #3FA573
square
#403FA5 #A53F71 #A4A53F #3FA573
split-complementary
#403FA5 #A5733F #71A53F
monochromatic
#1E1D4C #2F2E79 #403FA5 #605FC2 #8C8CD3

Accessibility & contrast

On white

8.49
#403FA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#403FA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403FA5
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403FA5#FFFFFF#000000##FFFFFF
##403FA51.008.492.478.49
#FFFFFF8.491.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A8
Deuteranopia (green-blind)
#0048A3
Tritanopia (blue-blind)
#00586C
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #403fa5;
/* rgb */ color: rgb(64, 63, 165);
/* oklch */ color: oklch(43.2% 0.160 277.8);
Tailwind
colors: {
  custom: {
    50: '#8074c0',
    500: '#403fa5',
    950: '#000000',
  },
}
SCSS
$custom: #403fa5;
$custom-light: #8074c0;
$custom-dark: #000000;
JSON
{
  "hex": "#403fa5",
  "rgb": {
    "r": 64,
    "g": 63,
    "b": 165
  },
  "hsl": {
    "h": 240.588,
    "s": 44.737,
    "l": 44.706
  },
  "oklch": {
    "l": 0.43205,
    "c": 0.15981,
    "h": 277.8
  },
  "luminance": 0.07362
}

Semantic roles & 50–950 ramp

primary
#403FA5
secondary
#BDBE82
accent
#D453D3
background
#F8F7FB
surface
#EFEDF7
border
#CAC8D0
text
#0B0812
muted
#7C7B81

Preview Lab

Preview with #403FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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