#403CE2#403CE2

#403CE2 is a mid, highly saturated blue. Relative luminance 0.098; OKLCH L 48.4% C 0.240 H 273.8°. Best body text is #FFFFFF at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#403CE2
RGBrgb(64, 60, 226)
HSLhsl(241, 74%, 56%)
HSVhsv(241, 73%, 89%)
CMYKcmyk(71.7%, 73.5%, 0%, 11.4%)
CIE-LABlab(37.50, 53.59, -82.73)
CIE-LCHlch(37.50, 98.57, 302.93°)
OKLaboklab(48.41% 0.016 -0.2393)
OKLCHoklch(48.41% 0.24 273.8)
XYZxyz(17.4531, 9.8109, 72.9107)
Luminance0.0981 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#403CE2 #DEE23C
analogous
#3C8BE2 #403CE2 #933CE2
triadic
#403CE2 #E2403C #3CE240
tetradic
#403CE2 #E23C8B #DEE23C #3CE293
square
#403CE2 #E23C8B #DEE23C #3CE293
split-complementary
#403CE2 #E2933C #8BE23C
monochromatic
#18158E #211DC4 #403CE2 #7471EA #A8A7F2

Accessibility & contrast

On white

7.09
#403CE2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#403CE2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #403CE2
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##403CE2#FFFFFF#000000##FFFFFF
##403CE21.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060E7
Deuteranopia (green-blind)
#0050DF
Tritanopia (blue-blind)
#006C8C
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #403ce2;
/* rgb */ color: rgb(64, 60, 226);
/* oklch */ color: oklch(48.4% 0.240 273.8);
Tailwind
colors: {
  custom: {
    50: '#8c74ed',
    500: '#403ce2',
    950: '#000000',
  },
}
SCSS
$custom: #403ce2;
$custom-light: #8c74ed;
$custom-dark: #000000;
JSON
{
  "hex": "#403ce2",
  "rgb": {
    "r": 64,
    "g": 60,
    "b": 226
  },
  "hsl": {
    "h": 241.446,
    "s": 74.107,
    "l": 56.078
  },
  "oklch": {
    "l": 0.48413,
    "c": 0.23985,
    "h": 273.8
  },
  "luminance": 0.09813
}

Semantic roles & 50–950 ramp

primary
#403CE2
secondary
#DEDF9B
accent
#F137EC
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0816
muted
#7E7B84

Preview Lab

Preview with #403CE2

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

Preview Lab → · Contrast checker → · Palette generator →

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