#403FA3#403FA3

#403FA3 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 43.0% C 0.157 H 278.0°. Best body text is #FFFFFF at 8.54:1 contrast (WCAG AA passes).

Color values

HEX#403FA3
RGBrgb(64, 63, 163)
HSLhsl(241, 44%, 44%)
HSVhsv(241, 61%, 64%)
CMYKcmyk(60.7%, 61.3%, 0%, 36.1%)
CIE-LABlab(32.46, 31.06, -54.11)
CIE-LCHlch(32.46, 62.39, 299.86°)
OKLaboklab(43.04% 0.0217 -0.1556)
OKLCHoklch(43.04% 0.157 278)
XYZxyz(10.5006, 7.2886, 35.4967)
Luminance0.0729 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403FA3 #A2A33F
analogous
#3F70A3 #403FA3 #723FA3
triadic
#403FA3 #A3403F #3FA340
tetradic
#403FA3 #A33F70 #A2A33F #3FA372
square
#403FA3 #A33F70 #A2A33F #3FA372
split-complementary
#403FA3 #A3723F #70A33F
monochromatic
#1D1D4B #2F2E77 #403FA3 #5F5EC1 #8B8AD2

Accessibility & contrast

On white

8.54
#403FA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#403FA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403FA3
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403FA3#FFFFFF#000000##FFFFFF
##403FA31.008.542.468.54
#FFFFFF8.541.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A6
Deuteranopia (green-blind)
#0048A1
Tritanopia (blue-blind)
#00576B
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #403fa3;
/* rgb */ color: rgb(64, 63, 163);
/* oklch */ color: oklch(43.0% 0.157 278.0);
Tailwind
colors: {
  custom: {
    50: '#7f74bf',
    500: '#403fa3',
    950: '#000000',
  },
}
SCSS
$custom: #403fa3;
$custom-light: #7f74bf;
$custom-dark: #000000;
JSON
{
  "hex": "#403fa3",
  "rgb": {
    "r": 64,
    "g": 63,
    "b": 163
  },
  "hsl": {
    "h": 240.6,
    "s": 44.248,
    "l": 44.314
  },
  "oklch": {
    "l": 0.43037,
    "c": 0.15708,
    "h": 278
  },
  "luminance": 0.07289
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #403FA3

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

Preview Lab → · Contrast checker → · Palette generator →

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