#403FC0#403FC0

#403FC0 is a mid, vivid blue. Relative luminance 0.085; OKLCH L 45.6% C 0.195 H 275.7°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#403FC0
RGBrgb(64, 63, 192)
HSLhsl(240, 51%, 50%)
HSVhsv(240, 67%, 75%)
CMYKcmyk(66.7%, 67.2%, 0%, 24.7%)
CIE-LABlab(34.90, 40.85, -67.34)
CIE-LCHlch(34.90, 78.76, 301.24°)
OKLaboklab(45.58% 0.0194 -0.1944)
OKLCHoklch(45.58% 0.195 275.7)
XYZxyz(13.4032, 8.4496, 50.7836)
Luminance0.0845 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403FC0 #BFC03F
analogous
#3F7FC0 #403FC0 #803FC0
triadic
#403FC0 #C0403F #3FC040
tetradic
#403FC0 #C03F7F #BFC03F #3FC080
square
#403FC0 #C03F7F #BFC03F #3FC080
split-complementary
#403FC0 #C0803F #7FC03F
monochromatic
#212164 #313092 #403FC0 #6E6DCF #9C9BDE

Accessibility & contrast

On white

7.81
#403FC0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#403FC0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403FC0
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403FC0#FFFFFF#000000##FFFFFF
##403FC01.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C4
Deuteranopia (green-blind)
#004CBE
Tritanopia (blue-blind)
#00617A
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #403fc0;
/* rgb */ color: rgb(64, 63, 192);
/* oklch */ color: oklch(45.6% 0.195 275.7);
Tailwind
colors: {
  custom: {
    50: '#8575d4',
    500: '#403fc0',
    950: '#000000',
  },
}
SCSS
$custom: #403fc0;
$custom-light: #8575d4;
$custom-dark: #000000;
JSON
{
  "hex": "#403fc0",
  "rgb": {
    "r": 64,
    "g": 63,
    "b": 192
  },
  "hsl": {
    "h": 240.465,
    "s": 50.588,
    "l": 50
  },
  "oklch": {
    "l": 0.45581,
    "c": 0.19536,
    "h": 275.7
  },
  "luminance": 0.08451
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #403FC0

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

Preview Lab → · Contrast checker → · Palette generator →

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