#403FA1#403FA1

#403FA1 is a dark, vivid blue. Relative luminance 0.072; OKLCH L 42.9% C 0.154 H 278.1°. Best body text is #FFFFFF at 8.59:1 contrast (WCAG AA passes).

Color values

HEX#403FA1
RGBrgb(64, 63, 161)
HSLhsl(241, 44%, 44%)
HSVhsv(241, 61%, 63%)
CMYKcmyk(60.2%, 60.9%, 0%, 36.9%)
CIE-LABlab(32.30, 30.38, -53.16)
CIE-LCHlch(32.30, 61.23, 299.75°)
OKLaboklab(42.87% 0.0218 -0.1528)
OKLCHoklch(42.87% 0.154 278.1)
XYZxyz(10.3228, 7.2175, 34.5604)
Luminance0.0722 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403FA1 #A0A13F
analogous
#3F6FA1 #403FA1 #713FA1
triadic
#403FA1 #A1403F #3FA140
tetradic
#403FA1 #A13F6F #A0A13F #3FA171
square
#403FA1 #A13F6F #A0A13F #3FA171
split-complementary
#403FA1 #A1713F #6FA13F
monochromatic
#1D1D49 #2F2E75 #403FA1 #5E5DC0 #8A89D1

Accessibility & contrast

On white

8.59
#403FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#403FA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403FA1
8.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403FA1#FFFFFF#000000##FFFFFF
##403FA11.008.592.448.59
#FFFFFF8.591.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A4
Deuteranopia (green-blind)
#00489F
Tritanopia (blue-blind)
#00576A
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #403fa1;
/* rgb */ color: rgb(64, 63, 161);
/* oklch */ color: oklch(42.9% 0.154 278.1);
Tailwind
colors: {
  custom: {
    50: '#7f74be',
    500: '#403fa1',
    950: '#000000',
  },
}
SCSS
$custom: #403fa1;
$custom-light: #7f74be;
$custom-dark: #000000;
JSON
{
  "hex": "#403fa1",
  "rgb": {
    "r": 64,
    "g": 63,
    "b": 161
  },
  "hsl": {
    "h": 240.612,
    "s": 43.75,
    "l": 43.922
  },
  "oklch": {
    "l": 0.42871,
    "c": 0.15433,
    "h": 278.1
  },
  "luminance": 0.07218
}

Semantic roles & 50–950 ramp

primary
#403FA1
secondary
#BBBC80
accent
#D354D2
background
#F8F7FB
surface
#EFEDF7
border
#CAC8D0
text
#0B0812
muted
#7C7B81

Preview Lab

Preview with #403FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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