#403FBB#403FBB

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

Color values

HEX#403FBB
RGBrgb(64, 63, 187)
HSLhsl(240, 50%, 49%)
HSVhsv(240, 66%, 73%)
CMYKcmyk(65.8%, 66.3%, 0%, 26.7%)
CIE-LABlab(34.46, 39.17, -65.12)
CIE-LCHlch(34.46, 76.00, 301.03°)
OKLaboklab(45.13% 0.02 -0.1879)
OKLCHoklch(45.13% 0.189 276.1)
XYZxyz(12.8586, 8.2318, 47.9153)
Luminance0.0823 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403FBB #BABB3F
analogous
#3F7CBB #403FBB #7E3FBB
triadic
#403FBB #BB403F #3FBB40
tetradic
#403FBB #BB3F7C #BABB3F #3FBB7E
square
#403FBB #BB3F7C #BABB3F #3FBB7E
split-complementary
#403FBB #BB7E3F #7CBB3F
monochromatic
#21205F #30308D #403FBB #6B6ACD #9998DC

Accessibility & contrast

On white

7.93
#403FBB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#403FBB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403FBB
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403FBB#FFFFFF#000000##FFFFFF
##403FBB1.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BF
Deuteranopia (green-blind)
#004CB9
Tritanopia (blue-blind)
#005F77
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #403fbb;
/* rgb */ color: rgb(64, 63, 187);
/* oklch */ color: oklch(45.1% 0.189 276.1);
Tailwind
colors: {
  custom: {
    50: '#8475d0',
    500: '#403fbb',
    950: '#000000',
  },
}
SCSS
$custom: #403fbb;
$custom-light: #8475d0;
$custom-dark: #000000;
JSON
{
  "hex": "#403fbb",
  "rgb": {
    "r": 64,
    "g": 63,
    "b": 187
  },
  "hsl": {
    "h": 240.484,
    "s": 49.6,
    "l": 49.02
  },
  "oklch": {
    "l": 0.45126,
    "c": 0.18896,
    "h": 276.1
  },
  "luminance": 0.08233
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #403FBB

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

Preview Lab → · Contrast checker → · Palette generator →

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