#403CC6#403CC6

#403CC6 is a mid, highly saturated blue. Relative luminance 0.084; OKLCH L 45.7% C 0.206 H 275.7°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#403CC6
RGBrgb(64, 60, 198)
HSLhsl(242, 55%, 51%)
HSVhsv(242, 70%, 78%)
CMYKcmyk(67.7%, 69.7%, 0%, 22.4%)
CIE-LABlab(34.80, 44.60, -71.02)
CIE-LCHlch(34.80, 83.86, 302.13°)
OKLaboklab(45.67% 0.0206 -0.2052)
OKLCHoklch(45.67% 0.206 275.7)
XYZxyz(13.9199, 8.3977, 54.3025)
Luminance0.0840 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403CC6 #C2C63C
analogous
#3C7DC6 #403CC6 #853CC6
triadic
#403CC6 #C6403C #3CC640
tetradic
#403CC6 #C63C7D #C2C63C #3CC685
square
#403CC6 #C63C7D #C2C63C #3CC685
split-complementary
#403CC6 #C6853C #7DC63C
monochromatic
#211F69 #302D98 #403CC6 #6E6BD4 #9D9BE2

Accessibility & contrast

On white

7.84
#403CC6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#403CC6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403CC6
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403CC6#FFFFFF#000000##FFFFFF
##403CC61.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058CA
Deuteranopia (green-blind)
#004CC3
Tritanopia (blue-blind)
#00627C
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #403cc6;
/* rgb */ color: rgb(64, 60, 198);
/* oklch */ color: oklch(45.7% 0.206 275.7);
Tailwind
colors: {
  custom: {
    50: '#8673d8',
    500: '#403cc6',
    950: '#000000',
  },
}
SCSS
$custom: #403cc6;
$custom-light: #8673d8;
$custom-dark: #000000;
JSON
{
  "hex": "#403cc6",
  "rgb": {
    "r": 64,
    "g": 60,
    "b": 198
  },
  "hsl": {
    "h": 241.739,
    "s": 54.762,
    "l": 50.588
  },
  "oklch": {
    "l": 0.45672,
    "c": 0.20621,
    "h": 275.7
  },
  "luminance": 0.08399
}

Semantic roles & 50–950 ramp

primary
#403CC6
secondary
#CCCE90
accent
#DE4ADA
background
#F9F7FD
surface
#F1EDFB
border
#CBC8D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #403CC6

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

Preview Lab → · Contrast checker → · Palette generator →

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