#403FBD#403FBD

#403FBD is a mid, vivid blue. Relative luminance 0.083; OKLCH L 45.3% C 0.192 H 275.9°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#403FBD
RGBrgb(64, 63, 189)
HSLhsl(240, 50%, 49%)
HSVhsv(240, 67%, 74%)
CMYKcmyk(66.1%, 66.7%, 0%, 25.9%)
CIE-LABlab(34.64, 39.84, -66.01)
CIE-LCHlch(34.64, 77.11, 301.11°)
OKLaboklab(45.31% 0.0197 -0.1905)
OKLCHoklch(45.31% 0.192 275.9)
XYZxyz(13.0742, 8.3180, 49.0508)
Luminance0.0832 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403FBD #BCBD3F
analogous
#3F7DBD #403FBD #7F3FBD
triadic
#403FBD #BD403F #3FBD40
tetradic
#403FBD #BD3F7D #BCBD3F #3FBD7F
square
#403FBD #BD3F7D #BCBD3F #3FBD7F
split-complementary
#403FBD #BD7F3F #7DBD3F
monochromatic
#212061 #30308F #403FBD #6C6BCE #9A99DD

Accessibility & contrast

On white

7.88
#403FBD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#403FBD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403FBD
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403FBD#FFFFFF#000000##FFFFFF
##403FBD1.007.882.667.88
#FFFFFF7.881.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C1
Deuteranopia (green-blind)
#004CBB
Tritanopia (blue-blind)
#006078
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #403fbd;
/* rgb */ color: rgb(64, 63, 189);
/* oklch */ color: oklch(45.3% 0.192 275.9);
Tailwind
colors: {
  custom: {
    50: '#8475d2',
    500: '#403fbd',
    950: '#000000',
  },
}
SCSS
$custom: #403fbd;
$custom-light: #8475d2;
$custom-dark: #000000;
JSON
{
  "hex": "#403fbd",
  "rgb": {
    "r": 64,
    "g": 63,
    "b": 189
  },
  "hsl": {
    "h": 240.476,
    "s": 50,
    "l": 49.412
  },
  "oklch": {
    "l": 0.45307,
    "c": 0.19153,
    "h": 275.9
  },
  "luminance": 0.08319
}

Semantic roles & 50–950 ramp

primary
#403FBD
secondary
#C9C98F
accent
#DA4ED8
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #403FBD

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

Preview Lab → · Contrast checker → · Palette generator →

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