#403FB5#403FB5

#403FB5 is a dark, vivid blue. Relative luminance 0.080; OKLCH L 44.6% C 0.181 H 276.5°. Best body text is #FFFFFF at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#403FB5
RGBrgb(64, 63, 181)
HSLhsl(241, 48%, 48%)
HSVhsv(241, 65%, 71%)
CMYKcmyk(64.6%, 65.2%, 0%, 29%)
CIE-LABlab(33.94, 37.16, -62.43)
CIE-LCHlch(33.94, 72.65, 300.76°)
OKLaboklab(44.59% 0.0206 -0.18)
OKLCHoklch(44.59% 0.181 276.5)
XYZxyz(12.2296, 7.9802, 44.6030)
Luminance0.0798 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403FB5 #B4B53F
analogous
#3F79B5 #403FB5 #7B3FB5
triadic
#403FB5 #B5403F #3FB540
tetradic
#403FB5 #B53F79 #B4B53F #3FB57B
square
#403FB5 #B53F79 #B4B53F #3FB57B
split-complementary
#403FB5 #B57B3F #79B53F
monochromatic
#201F5A #302F88 #403FB5 #6867CA #9594DA

Accessibility & contrast

On white

8.09
#403FB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#403FB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403FB5
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403FB5#FFFFFF#000000##FFFFFF
##403FB51.008.092.608.09
#FFFFFF8.091.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B9
Deuteranopia (green-blind)
#004BB3
Tritanopia (blue-blind)
#005D74
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #403fb5;
/* rgb */ color: rgb(64, 63, 181);
/* oklch */ color: oklch(44.6% 0.181 276.5);
Tailwind
colors: {
  custom: {
    50: '#8374cc',
    500: '#403fb5',
    950: '#000000',
  },
}
SCSS
$custom: #403fb5;
$custom-light: #8374cc;
$custom-dark: #000000;
JSON
{
  "hex": "#403fb5",
  "rgb": {
    "r": 64,
    "g": 63,
    "b": 181
  },
  "hsl": {
    "h": 240.508,
    "s": 48.361,
    "l": 47.843
  },
  "oklch": {
    "l": 0.44588,
    "c": 0.18118,
    "h": 276.5
  },
  "luminance": 0.07981
}

Semantic roles & 50–950 ramp

primary
#403FB5
secondary
#C5C58A
accent
#D850D7
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0C0813
muted
#7D7B82

Preview Lab

Preview with #403FB5

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

Preview Lab → · Contrast checker → · Palette generator →

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