#403FC3#403FC3

#403FC3 is a mid, vivid blue. Relative luminance 0.086; OKLCH L 45.9% C 0.199 H 275.5°. Best body text is #FFFFFF at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#403FC3
RGBrgb(64, 63, 195)
HSLhsl(240, 52%, 51%)
HSVhsv(240, 68%, 76%)
CMYKcmyk(67.2%, 67.7%, 0%, 23.5%)
CIE-LABlab(35.17, 41.84, -68.66)
CIE-LCHlch(35.17, 80.40, 301.36°)
OKLaboklab(45.86% 0.019 -0.1982)
OKLCHoklch(45.86% 0.199 275.5)
XYZxyz(13.7389, 8.5839, 52.5520)
Luminance0.0858 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403FC3 #C2C33F
analogous
#3F80C3 #403FC3 #823FC3
triadic
#403FC3 #C3403F #3FC340
tetradic
#403FC3 #C33F80 #C2C33F #3FC382
square
#403FC3 #C33F80 #C2C33F #3FC382
split-complementary
#403FC3 #C3823F #80C33F
monochromatic
#212067 #302F96 #403FC3 #6E6ED2 #9D9CE0

Accessibility & contrast

On white

7.73
#403FC3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#403FC3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403FC3
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403FC3#FFFFFF#000000##FFFFFF
##403FC31.007.732.727.73
#FFFFFF7.731.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C7
Deuteranopia (green-blind)
#004DC1
Tritanopia (blue-blind)
#00627C
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #403fc3;
/* rgb */ color: rgb(64, 63, 195);
/* oklch */ color: oklch(45.9% 0.199 275.5);
Tailwind
colors: {
  custom: {
    50: '#8575d6',
    500: '#403fc3',
    950: '#000000',
  },
}
SCSS
$custom: #403fc3;
$custom-light: #8575d6;
$custom-dark: #000000;
JSON
{
  "hex": "#403fc3",
  "rgb": {
    "r": 64,
    "g": 63,
    "b": 195
  },
  "hsl": {
    "h": 240.455,
    "s": 52.381,
    "l": 50.588
  },
  "oklch": {
    "l": 0.45857,
    "c": 0.19916,
    "h": 275.5
  },
  "luminance": 0.08585
}

Semantic roles & 50–950 ramp

primary
#403FC3
secondary
#CCCC92
accent
#DC4CDB
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0D0814
muted
#7D7B83

Preview Lab

Preview with #403FC3

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

Preview Lab → · Contrast checker → · Palette generator →

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