#403FA4#403FA4

#403FA4 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 43.1% C 0.158 H 277.9°. Best body text is #FFFFFF at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#403FA4
RGBrgb(64, 63, 164)
HSLhsl(241, 44%, 45%)
HSVhsv(241, 62%, 64%)
CMYKcmyk(61%, 61.6%, 0%, 35.7%)
CIE-LABlab(32.53, 31.40, -54.58)
CIE-LCHlch(32.53, 62.97, 299.91°)
OKLaboklab(43.12% 0.0217 -0.157)
OKLCHoklch(43.12% 0.158 277.9)
XYZxyz(10.5905, 7.3245, 35.9705)
Luminance0.0732 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403FA4 #A3A43F
analogous
#3F71A4 #403FA4 #733FA4
triadic
#403FA4 #A4403F #3FA440
tetradic
#403FA4 #A43F71 #A3A43F #3FA473
square
#403FA4 #A43F71 #A3A43F #3FA473
split-complementary
#403FA4 #A4733F #71A43F
monochromatic
#1D1D4C #2F2E78 #403FA4 #605FC1 #8C8BD2

Accessibility & contrast

On white

8.52
#403FA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #403FA4
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403FA4#FFFFFF#000000##FFFFFF
##403FA41.008.522.478.52
#FFFFFF8.521.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A7
Deuteranopia (green-blind)
#0048A2
Tritanopia (blue-blind)
#00586B
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #403fa4;
/* rgb */ color: rgb(64, 63, 164);
/* oklch */ color: oklch(43.1% 0.158 277.9);
Tailwind
colors: {
  custom: {
    50: '#7f74c0',
    500: '#403fa4',
    950: '#000000',
  },
}
SCSS
$custom: #403fa4;
$custom-light: #7f74c0;
$custom-dark: #000000;
JSON
{
  "hex": "#403fa4",
  "rgb": {
    "r": 64,
    "g": 63,
    "b": 164
  },
  "hsl": {
    "h": 240.594,
    "s": 44.493,
    "l": 44.51
  },
  "oklch": {
    "l": 0.43121,
    "c": 0.15845,
    "h": 277.9
  },
  "luminance": 0.07325
}

Semantic roles & 50–950 ramp

primary
#403FA4
secondary
#BDBD82
accent
#D454D3
background
#F8F7FB
surface
#EFEDF7
border
#CAC8D0
text
#0B0812
muted
#7C7B81

Preview Lab

Preview with #403FA4

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

Preview Lab → · Contrast checker → · Palette generator →

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