#403FA9#403FA9

#403FA9 is a dark, vivid blue. Relative luminance 0.075; OKLCH L 43.5% C 0.165 H 277.5°. Best body text is #FFFFFF at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#403FA9
RGBrgb(64, 63, 169)
HSLhsl(241, 46%, 45%)
HSVhsv(241, 63%, 66%)
CMYKcmyk(62.1%, 62.7%, 0%, 33.7%)
CIE-LABlab(32.94, 33.10, -56.92)
CIE-LCHlch(32.94, 65.85, 300.18°)
OKLaboklab(43.54% 0.0215 -0.1638)
OKLCHoklch(43.54% 0.165 277.5)
XYZxyz(11.0510, 7.5087, 38.3954)
Luminance0.0751 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403FA9 #A8A93F
analogous
#3F73A9 #403FA9 #753FA9
triadic
#403FA9 #A9403F #3FA940
tetradic
#403FA9 #A93F73 #A8A93F #3FA975
square
#403FA9 #A93F73 #A8A93F #3FA975
split-complementary
#403FA9 #A9753F #73A93F
monochromatic
#1E1E50 #2F2E7C #403FA9 #6261C4 #8E8ED5

Accessibility & contrast

On white

8.39
#403FA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#403FA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403FA9
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403FA9#FFFFFF#000000##FFFFFF
##403FA91.008.392.508.39
#FFFFFF8.391.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052AC
Deuteranopia (green-blind)
#0049A7
Tritanopia (blue-blind)
#00596E
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #403fa9;
/* rgb */ color: rgb(64, 63, 169);
/* oklch */ color: oklch(43.5% 0.165 277.5);
Tailwind
colors: {
  custom: {
    50: '#8074c3',
    500: '#403fa9',
    950: '#000000',
  },
}
SCSS
$custom: #403fa9;
$custom-light: #8074c3;
$custom-dark: #000000;
JSON
{
  "hex": "#403fa9",
  "rgb": {
    "r": 64,
    "g": 63,
    "b": 169
  },
  "hsl": {
    "h": 240.566,
    "s": 45.69,
    "l": 45.49
  },
  "oklch": {
    "l": 0.43543,
    "c": 0.16524,
    "h": 277.5
  },
  "luminance": 0.0751
}

Semantic roles & 50–950 ramp

primary
#403FA9
secondary
#BFC084
accent
#D552D4
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82

Preview Lab

Preview with #403FA9

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

Preview Lab → · Contrast checker → · Palette generator →

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