#403FBC#403FBC

#403FBC is a mid, vivid blue. Relative luminance 0.083; OKLCH L 45.2% C 0.190 H 276.0°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#403FBC
RGBrgb(64, 63, 188)
HSLhsl(240, 50%, 49%)
HSVhsv(240, 66%, 74%)
CMYKcmyk(66%, 66.5%, 0%, 26.3%)
CIE-LABlab(34.55, 39.51, -65.57)
CIE-LCHlch(34.55, 76.55, 301.07°)
OKLaboklab(45.22% 0.0199 -0.1892)
OKLCHoklch(45.22% 0.19 276)
XYZxyz(12.9660, 8.2747, 48.4811)
Luminance0.0828 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403FBC #BBBC3F
analogous
#3F7DBC #403FBC #7F3FBC
triadic
#403FBC #BC403F #3FBC40
tetradic
#403FBC #BC3F7D #BBBC3F #3FBC7F
square
#403FBC #BC3F7D #BBBC3F #3FBC7F
split-complementary
#403FBC #BC7F3F #7DBC3F
monochromatic
#212060 #30308E #403FBC #6C6BCD #9999DD

Accessibility & contrast

On white

7.91
#403FBC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #403FBC
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403FBC#FFFFFF#000000##FFFFFF
##403FBC1.007.912.667.91
#FFFFFF7.911.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #403fbc;
/* rgb */ color: rgb(64, 63, 188);
/* oklch */ color: oklch(45.2% 0.190 276.0);
Tailwind
colors: {
  custom: {
    50: '#8475d1',
    500: '#403fbc',
    950: '#000000',
  },
}
SCSS
$custom: #403fbc;
$custom-light: #8475d1;
$custom-dark: #000000;
JSON
{
  "hex": "#403fbc",
  "rgb": {
    "r": 64,
    "g": 63,
    "b": 188
  },
  "hsl": {
    "h": 240.48,
    "s": 49.801,
    "l": 49.216
  },
  "oklch": {
    "l": 0.45216,
    "c": 0.19025,
    "h": 276
  },
  "luminance": 0.08276
}

Semantic roles & 50–950 ramp

primary
#403FBC
secondary
#C8C98E
accent
#D94ED8
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #403FBC

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

Preview Lab → · Contrast checker → · Palette generator →

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