#403FB7#403FB7

#403FB7 is a dark, vivid blue. Relative luminance 0.081; OKLCH L 44.8% C 0.184 H 276.4°. Best body text is #FFFFFF at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#403FB7
RGBrgb(64, 63, 183)
HSLhsl(241, 49%, 48%)
HSVhsv(241, 66%, 72%)
CMYKcmyk(65%, 65.6%, 0%, 28.2%)
CIE-LABlab(34.11, 37.83, -63.33)
CIE-LCHlch(34.11, 73.77, 300.85°)
OKLaboklab(44.77% 0.0204 -0.1826)
OKLCHoklch(44.77% 0.184 276.4)
XYZxyz(12.4363, 8.0629, 45.6915)
Luminance0.0806 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403FB7 #B6B73F
analogous
#3F7AB7 #403FB7 #7C3FB7
triadic
#403FB7 #B7403F #3FB740
tetradic
#403FB7 #B73F7A #B6B73F #3FB77C
square
#403FB7 #B73F7A #B6B73F #3FB77C
split-complementary
#403FB7 #B77C3F #7AB73F
monochromatic
#20205C #302F89 #403FB7 #6968CB #9696DB

Accessibility & contrast

On white

8.04
#403FB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#403FB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403FB7
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403FB7#FFFFFF#000000##FFFFFF
##403FB71.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BB
Deuteranopia (green-blind)
#004BB5
Tritanopia (blue-blind)
#005E75
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #403fb7;
/* rgb */ color: rgb(64, 63, 183);
/* oklch */ color: oklch(44.8% 0.184 276.4);
Tailwind
colors: {
  custom: {
    50: '#8374ce',
    500: '#403fb7',
    950: '#000000',
  },
}
SCSS
$custom: #403fb7;
$custom-light: #8374ce;
$custom-dark: #000000;
JSON
{
  "hex": "#403fb7",
  "rgb": {
    "r": 64,
    "g": 63,
    "b": 183
  },
  "hsl": {
    "h": 240.5,
    "s": 48.78,
    "l": 48.235
  },
  "oklch": {
    "l": 0.44766,
    "c": 0.18378,
    "h": 276.4
  },
  "luminance": 0.08064
}

Semantic roles & 50–950 ramp

primary
#403FB7
secondary
#C6C68B
accent
#D84FD7
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0C0814
muted
#7D7B82

Preview Lab

Preview with #403FB7

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

Preview Lab → · Contrast checker → · Palette generator →

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