#403FB1#403FB1

#403FB1 is a dark, vivid blue. Relative luminance 0.078; OKLCH L 44.2% C 0.176 H 276.8°. Best body text is #FFFFFF at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#403FB1
RGBrgb(64, 63, 177)
HSLhsl(241, 48%, 47%)
HSVhsv(241, 64%, 69%)
CMYKcmyk(63.8%, 64.4%, 0%, 30.6%)
CIE-LABlab(33.60, 35.81, -60.61)
CIE-LCHlch(33.60, 70.40, 300.57°)
OKLaboklab(44.24% 0.0209 -0.1747)
OKLCHoklch(44.24% 0.176 276.8)
XYZxyz(11.8251, 7.8184, 42.4724)
Luminance0.0782 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403FB1 #B0B13F
analogous
#3F77B1 #403FB1 #793FB1
triadic
#403FB1 #B1403F #3FB140
tetradic
#403FB1 #B13F77 #B0B13F #3FB179
square
#403FB1 #B13F77 #B0B13F #3FB179
split-complementary
#403FB1 #B1793F #77B13F
monochromatic
#1F1F57 #302F84 #403FB1 #6665C8 #9392D8

Accessibility & contrast

On white

8.19
#403FB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#403FB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403FB1
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403FB1#FFFFFF#000000##FFFFFF
##403FB11.008.192.568.19
#FFFFFF8.191.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B5
Deuteranopia (green-blind)
#004AAF
Tritanopia (blue-blind)
#005C72
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #403fb1;
/* rgb */ color: rgb(64, 63, 177);
/* oklch */ color: oklch(44.2% 0.176 276.8);
Tailwind
colors: {
  custom: {
    50: '#8274c9',
    500: '#403fb1',
    950: '#000000',
  },
}
SCSS
$custom: #403fb1;
$custom-light: #8274c9;
$custom-dark: #000000;
JSON
{
  "hex": "#403fb1",
  "rgb": {
    "r": 64,
    "g": 63,
    "b": 177
  },
  "hsl": {
    "h": 240.526,
    "s": 47.5,
    "l": 47.059
  },
  "oklch": {
    "l": 0.44235,
    "c": 0.17592,
    "h": 276.8
  },
  "luminance": 0.07819
}

Semantic roles & 50–950 ramp

primary
#403FB1
secondary
#C3C488
accent
#D751D6
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0813
muted
#7D7B82

Preview Lab

Preview with #403FB1

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

Preview Lab → · Contrast checker → · Palette generator →

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