#403FC1#403FC1

#403FC1 is a mid, vivid blue. Relative luminance 0.085; OKLCH L 45.7% C 0.197 H 275.6°. Best body text is #FFFFFF at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#403FC1
RGBrgb(64, 63, 193)
HSLhsl(240, 51%, 50%)
HSVhsv(240, 67%, 76%)
CMYKcmyk(66.8%, 67.4%, 0%, 24.3%)
CIE-LABlab(34.99, 41.18, -67.78)
CIE-LCHlch(34.99, 79.31, 301.28°)
OKLaboklab(45.67% 0.0193 -0.1957)
OKLCHoklch(45.67% 0.197 275.6)
XYZxyz(13.5143, 8.4941, 51.3691)
Luminance0.0849 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403FC1 #C0C13F
analogous
#3F7FC1 #403FC1 #813FC1
triadic
#403FC1 #C1403F #3FC140
tetradic
#403FC1 #C13F7F #C0C13F #3FC181
square
#403FC1 #C13F7F #C0C13F #3FC181
split-complementary
#403FC1 #C1813F #7FC13F
monochromatic
#212165 #303093 #403FC1 #6E6DD0 #9C9CDF

Accessibility & contrast

On white

7.78
#403FC1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#403FC1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403FC1
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403FC1#FFFFFF#000000##FFFFFF
##403FC11.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C5
Deuteranopia (green-blind)
#004CBF
Tritanopia (blue-blind)
#00627B
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #403fc1;
/* rgb */ color: rgb(64, 63, 193);
/* oklch */ color: oklch(45.7% 0.197 275.6);
Tailwind
colors: {
  custom: {
    50: '#8575d5',
    500: '#403fc1',
    950: '#000000',
  },
}
SCSS
$custom: #403fc1;
$custom-light: #8575d5;
$custom-dark: #000000;
JSON
{
  "hex": "#403fc1",
  "rgb": {
    "r": 64,
    "g": 63,
    "b": 193
  },
  "hsl": {
    "h": 240.462,
    "s": 51.181,
    "l": 50.196
  },
  "oklch": {
    "l": 0.45673,
    "c": 0.19663,
    "h": 275.6
  },
  "luminance": 0.08495
}

Semantic roles & 50–950 ramp

primary
#403FC1
secondary
#CBCB91
accent
#DB4DDA
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0814
muted
#7D7B83

Preview Lab

Preview with #403FC1

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

Preview Lab → · Contrast checker → · Palette generator →

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