#403FB3#403FB3

#403FB3 is a dark, vivid blue. Relative luminance 0.079; OKLCH L 44.4% C 0.179 H 276.7°. Best body text is #FFFFFF at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#403FB3
RGBrgb(64, 63, 179)
HSLhsl(241, 48%, 47%)
HSVhsv(241, 65%, 70%)
CMYKcmyk(64.2%, 64.8%, 0%, 29.8%)
CIE-LABlab(33.77, 36.48, -61.52)
CIE-LCHlch(33.77, 71.53, 300.67°)
OKLaboklab(44.41% 0.0207 -0.1773)
OKLCHoklch(44.41% 0.179 276.7)
XYZxyz(12.0259, 7.8987, 43.5299)
Luminance0.0790 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403FB3 #B2B33F
analogous
#3F78B3 #403FB3 #7A3FB3
triadic
#403FB3 #B3403F #3FB340
tetradic
#403FB3 #B33F78 #B2B33F #3FB37A
square
#403FB3 #B33F78 #B2B33F #3FB37A
split-complementary
#403FB3 #B37A3F #78B33F
monochromatic
#201F58 #302F86 #403FB3 #6766C9 #9493D9

Accessibility & contrast

On white

8.14
#403FB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#403FB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403FB3
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403FB3#FFFFFF#000000##FFFFFF
##403FB31.008.142.588.14
#FFFFFF8.141.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B7
Deuteranopia (green-blind)
#004AB1
Tritanopia (blue-blind)
#005D73
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #403fb3;
/* rgb */ color: rgb(64, 63, 179);
/* oklch */ color: oklch(44.4% 0.179 276.7);
Tailwind
colors: {
  custom: {
    50: '#8274cb',
    500: '#403fb3',
    950: '#000000',
  },
}
SCSS
$custom: #403fb3;
$custom-light: #8274cb;
$custom-dark: #000000;
JSON
{
  "hex": "#403fb3",
  "rgb": {
    "r": 64,
    "g": 63,
    "b": 179
  },
  "hsl": {
    "h": 240.517,
    "s": 47.934,
    "l": 47.451
  },
  "oklch": {
    "l": 0.44411,
    "c": 0.17856,
    "h": 276.7
  },
  "luminance": 0.079
}

Semantic roles & 50–950 ramp

primary
#403FB3
secondary
#C4C489
accent
#D850D6
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0C0813
muted
#7D7B82

Preview Lab

Preview with #403FB3

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

Preview Lab → · Contrast checker → · Palette generator →

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