#403FB4#403FB4

#403FB4 is a dark, vivid blue. Relative luminance 0.079; OKLCH L 44.5% C 0.180 H 276.6°. Best body text is #FFFFFF at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#403FB4
RGBrgb(64, 63, 180)
HSLhsl(241, 48%, 48%)
HSVhsv(241, 65%, 71%)
CMYKcmyk(64.4%, 65%, 0%, 29.4%)
CIE-LABlab(33.86, 36.82, -61.98)
CIE-LCHlch(33.86, 72.09, 300.71°)
OKLaboklab(44.5% 0.0206 -0.1787)
OKLCHoklch(44.5% 0.18 276.6)
XYZxyz(12.1274, 7.9393, 44.0645)
Luminance0.0794 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403FB4 #B3B43F
analogous
#3F78B4 #403FB4 #7B3FB4
triadic
#403FB4 #B4403F #3FB440
tetradic
#403FB4 #B43F78 #B3B43F #3FB47B
square
#403FB4 #B43F78 #B3B43F #3FB47B
split-complementary
#403FB4 #B47B3F #78B43F
monochromatic
#201F59 #302F87 #403FB4 #6767CA #9494DA

Accessibility & contrast

On white

8.11
#403FB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#403FB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403FB4
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403FB4#FFFFFF#000000##FFFFFF
##403FB41.008.112.598.11
#FFFFFF8.111.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.111.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #403fb4;
/* rgb */ color: rgb(64, 63, 180);
/* oklch */ color: oklch(44.5% 0.180 276.6);
Tailwind
colors: {
  custom: {
    50: '#8274cb',
    500: '#403fb4',
    950: '#000000',
  },
}
SCSS
$custom: #403fb4;
$custom-light: #8274cb;
$custom-dark: #000000;
JSON
{
  "hex": "#403fb4",
  "rgb": {
    "r": 64,
    "g": 63,
    "b": 180
  },
  "hsl": {
    "h": 240.513,
    "s": 48.148,
    "l": 47.647
  },
  "oklch": {
    "l": 0.445,
    "c": 0.17987,
    "h": 276.6
  },
  "luminance": 0.0794
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #403FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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