#403FBA#403FBA

#403FBA is a mid, vivid blue. Relative luminance 0.082; OKLCH L 45.0% C 0.188 H 276.1°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#403FBA
RGBrgb(64, 63, 186)
HSLhsl(240, 49%, 49%)
HSVhsv(240, 66%, 73%)
CMYKcmyk(65.6%, 66.1%, 0%, 27.1%)
CIE-LABlab(34.37, 38.84, -64.68)
CIE-LCHlch(34.37, 75.44, 300.98°)
OKLaboklab(45.04% 0.0201 -0.1866)
OKLCHoklch(45.04% 0.188 276.1)
XYZxyz(12.7519, 8.1891, 47.3535)
Luminance0.0819 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403FBA #B9BA3F
analogous
#3F7CBA #403FBA #7E3FBA
triadic
#403FBA #BA403F #3FBA40
tetradic
#403FBA #BA3F7C #B9BA3F #3FBA7E
square
#403FBA #BA3F7C #B9BA3F #3FBA7E
split-complementary
#403FBA #BA7E3F #7CBA3F
monochromatic
#21205F #30308C #403FBA #6B6ACC #9897DC

Accessibility & contrast

On white

7.96
#403FBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#403FBA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403FBA
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403FBA#FFFFFF#000000##FFFFFF
##403FBA1.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056BE
Deuteranopia (green-blind)
#004BB8
Tritanopia (blue-blind)
#005F77
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #403fba;
/* rgb */ color: rgb(64, 63, 186);
/* oklch */ color: oklch(45.0% 0.188 276.1);
Tailwind
colors: {
  custom: {
    50: '#8475d0',
    500: '#403fba',
    950: '#000000',
  },
}
SCSS
$custom: #403fba;
$custom-light: #8475d0;
$custom-dark: #000000;
JSON
{
  "hex": "#403fba",
  "rgb": {
    "r": 64,
    "g": 63,
    "b": 186
  },
  "hsl": {
    "h": 240.488,
    "s": 49.398,
    "l": 48.824
  },
  "oklch": {
    "l": 0.45036,
    "c": 0.18768,
    "h": 276.1
  },
  "luminance": 0.0819
}

Semantic roles & 50–950 ramp

primary
#403FBA
secondary
#C7C88D
accent
#D94FD8
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0C0814
muted
#7D7B82

Preview Lab

Preview with #403FBA

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

Preview Lab → · Contrast checker → · Palette generator →

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