#403FC4#403FC4

#403FC4 is a mid, highly saturated blue. Relative luminance 0.086; OKLCH L 46.0% C 0.200 H 275.4°. Best body text is #FFFFFF at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#403FC4
RGBrgb(64, 63, 196)
HSLhsl(240, 53%, 51%)
HSVhsv(240, 68%, 77%)
CMYKcmyk(67.3%, 67.9%, 0%, 23.1%)
CIE-LABlab(35.26, 42.18, -69.09)
CIE-LCHlch(35.26, 80.95, 301.40°)
OKLaboklab(45.95% 0.0189 -0.1995)
OKLCHoklch(45.95% 0.2 275.4)
XYZxyz(13.8524, 8.6293, 53.1495)
Luminance0.0863 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403FC4 #C3C43F
analogous
#3F80C4 #403FC4 #823FC4
triadic
#403FC4 #C4403F #3FC440
tetradic
#403FC4 #C43F80 #C3C43F #3FC482
square
#403FC4 #C43F80 #C3C43F #3FC482
split-complementary
#403FC4 #C4823F #80C43F
monochromatic
#212068 #2F2E97 #403FC4 #6F6ED2 #9D9DE1

Accessibility & contrast

On white

7.70
#403FC4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#403FC4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403FC4
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403FC4#FFFFFF#000000##FFFFFF
##403FC41.007.702.737.70
#FFFFFF7.701.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.701.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #403fc4;
/* rgb */ color: rgb(64, 63, 196);
/* oklch */ color: oklch(46.0% 0.200 275.4);
Tailwind
colors: {
  custom: {
    50: '#8675d7',
    500: '#403fc4',
    950: '#000000',
  },
}
SCSS
$custom: #403fc4;
$custom-light: #8675d7;
$custom-dark: #000000;
JSON
{
  "hex": "#403fc4",
  "rgb": {
    "r": 64,
    "g": 63,
    "b": 196
  },
  "hsl": {
    "h": 240.451,
    "s": 52.988,
    "l": 50.784
  },
  "oklch": {
    "l": 0.4595,
    "c": 0.20043,
    "h": 275.4
  },
  "luminance": 0.08631
}

Semantic roles & 50–950 ramp

primary
#403FC4
secondary
#CCCD92
accent
#DC4BDB
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0D0815
muted
#7D7B83

Preview Lab

Preview with #403FC4

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

Preview Lab → · Contrast checker → · Palette generator →

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