#403FBE#403FBE

#403FBE is a mid, vivid blue. Relative luminance 0.084; OKLCH L 45.4% C 0.193 H 275.8°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#403FBE
RGBrgb(64, 63, 190)
HSLhsl(240, 50%, 50%)
HSVhsv(240, 67%, 75%)
CMYKcmyk(66.3%, 66.8%, 0%, 25.5%)
CIE-LABlab(34.72, 40.18, -66.46)
CIE-LCHlch(34.72, 77.66, 301.16°)
OKLaboklab(45.4% 0.0196 -0.1918)
OKLCHoklch(45.4% 0.193 275.8)
XYZxyz(13.1831, 8.3616, 49.6244)
Luminance0.0836 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403FBE #BDBE3F
analogous
#3F7EBE #403FBE #7F3FBE
triadic
#403FBE #BE403F #3FBE40
tetradic
#403FBE #BE3F7E #BDBE3F #3FBE7F
square
#403FBE #BE3F7E #BDBE3F #3FBE7F
split-complementary
#403FBE #BE7F3F #7EBE3F
monochromatic
#212162 #313090 #403FBE #6D6CCE #9A9ADD

Accessibility & contrast

On white

7.86
#403FBE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#403FBE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403FBE
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403FBE#FFFFFF#000000##FFFFFF
##403FBE1.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C2
Deuteranopia (green-blind)
#004CBC
Tritanopia (blue-blind)
#006079
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #403fbe;
/* rgb */ color: rgb(64, 63, 190);
/* oklch */ color: oklch(45.4% 0.193 275.8);
Tailwind
colors: {
  custom: {
    50: '#8475d3',
    500: '#403fbe',
    950: '#000000',
  },
}
SCSS
$custom: #403fbe;
$custom-light: #8475d3;
$custom-dark: #000000;
JSON
{
  "hex": "#403fbe",
  "rgb": {
    "r": 64,
    "g": 63,
    "b": 190
  },
  "hsl": {
    "h": 240.472,
    "s": 50.198,
    "l": 49.608
  },
  "oklch": {
    "l": 0.45398,
    "c": 0.19281,
    "h": 275.8
  },
  "luminance": 0.08363
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #403FBE

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

Preview Lab → · Contrast checker → · Palette generator →

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