#4C40CE#4C40CE

#4C40CE is a mid, highly saturated blue. Relative luminance 0.097; OKLCH L 47.9% C 0.209 H 278.7°. Best body text is #FFFFFF at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#4C40CE
RGBrgb(76, 64, 206)
HSLhsl(245, 59%, 53%)
HSVhsv(245, 69%, 81%)
CMYKcmyk(63.1%, 68.9%, 0%, 19.2%)
CIE-LABlab(37.22, 46.39, -71.66)
CIE-LCHlch(37.22, 85.37, 302.92°)
OKLaboklab(47.86% 0.0318 -0.2067)
OKLCHoklch(47.86% 0.209 278.7)
XYZxyz(15.9509, 9.6583, 59.4042)
Luminance0.0966 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C40CE #C2CE40
analogous
#407BCE #4C40CE #9340CE
triadic
#4C40CE #CE4C40 #40CE4C
tetradic
#4C40CE #CE407B #C2CE40 #40CE93
square
#4C40CE #CE407B #C2CE40 #40CE93
split-complementary
#4C40CE #CE9340 #7BCE40
monochromatic
#261E75 #352BA6 #4C40CE #7A71DA #A7A1E7

Accessibility & contrast

On white

7.16
#4C40CE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#4C40CE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C40CE
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C40CE#FFFFFF#000000##FFFFFF
##4C40CE1.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DD2
Deuteranopia (green-blind)
#0052CB
Tritanopia (blue-blind)
#006682
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #4c40ce;
/* rgb */ color: rgb(76, 64, 206);
/* oklch */ color: oklch(47.9% 0.209 278.7);
Tailwind
colors: {
  custom: {
    50: '#8d76de',
    500: '#4c40ce',
    950: '#000000',
  },
}
SCSS
$custom: #4c40ce;
$custom-light: #8d76de;
$custom-dark: #000000;
JSON
{
  "hex": "#4c40ce",
  "rgb": {
    "r": 76,
    "g": 64,
    "b": 206
  },
  "hsl": {
    "h": 245.07,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.47856,
    "c": 0.20915,
    "h": 278.7
  },
  "luminance": 0.0966
}

Semantic roles & 50–950 ramp

primary
#4C40CE
secondary
#CED496
accent
#E245D5
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #4C40CE

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

Preview Lab → · Contrast checker → · Palette generator →

#4C40CE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva