#403FB8#403FB8

#403FB8 is a dark, vivid blue. Relative luminance 0.081; OKLCH L 44.9% C 0.185 H 276.3°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#403FB8
RGBrgb(64, 63, 184)
HSLhsl(240, 49%, 48%)
HSVhsv(240, 66%, 72%)
CMYKcmyk(65.2%, 65.8%, 0%, 27.8%)
CIE-LABlab(34.20, 38.17, -63.78)
CIE-LCHlch(34.20, 74.33, 300.90°)
OKLaboklab(44.86% 0.0203 -0.184)
OKLCHoklch(44.86% 0.185 276.3)
XYZxyz(12.5408, 8.1046, 46.2416)
Luminance0.0811 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403FB8 #B7B83F
analogous
#3F7AB8 #403FB8 #7C3FB8
triadic
#403FB8 #B8403F #3FB840
tetradic
#403FB8 #B83F7A #B7B83F #3FB87C
square
#403FB8 #B83F7A #B7B83F #3FB87C
split-complementary
#403FB8 #B87C3F #7AB83F
monochromatic
#20205D #302F8A #403FB8 #6969CC #9796DB

Accessibility & contrast

On white

8.01
#403FB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#403FB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403FB8
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403FB8#FFFFFF#000000##FFFFFF
##403FB81.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BC
Deuteranopia (green-blind)
#004BB6
Tritanopia (blue-blind)
#005E76
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #403fb8;
/* rgb */ color: rgb(64, 63, 184);
/* oklch */ color: oklch(44.9% 0.185 276.3);
Tailwind
colors: {
  custom: {
    50: '#8374ce',
    500: '#403fb8',
    950: '#000000',
  },
}
SCSS
$custom: #403fb8;
$custom-light: #8374ce;
$custom-dark: #000000;
JSON
{
  "hex": "#403fb8",
  "rgb": {
    "r": 64,
    "g": 63,
    "b": 184
  },
  "hsl": {
    "h": 240.496,
    "s": 48.988,
    "l": 48.431
  },
  "oklch": {
    "l": 0.44856,
    "c": 0.18508,
    "h": 276.3
  },
  "luminance": 0.08106
}

Semantic roles & 50–950 ramp

primary
#403FB8
secondary
#C6C78C
accent
#D94FD7
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0C0814
muted
#7D7B82

Preview Lab

Preview with #403FB8

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

Preview Lab → · Contrast checker → · Palette generator →

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