#4C40CC#4C40CC

#4C40CC is a mid, highly saturated blue. Relative luminance 0.096; OKLCH L 47.7% C 0.207 H 278.9°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#4C40CC
RGBrgb(76, 64, 204)
HSLhsl(245, 58%, 53%)
HSVhsv(245, 69%, 80%)
CMYKcmyk(62.7%, 68.6%, 0%, 20%)
CIE-LABlab(37.04, 45.76, -70.79)
CIE-LCHlch(37.04, 84.30, 302.88°)
OKLaboklab(47.67% 0.0321 -0.2042)
OKLCHoklch(47.67% 0.207 278.9)
XYZxyz(15.7095, 9.5617, 58.1328)
Luminance0.0956 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C40CC #C0CC40
analogous
#407ACC #4C40CC #9240CC
triadic
#4C40CC #CC4C40 #40CC4C
tetradic
#4C40CC #CC407A #C0CC40 #40CC92
square
#4C40CC #CC407A #C0CC40 #40CC92
split-complementary
#4C40CC #CC9240 #7ACC40
monochromatic
#261F73 #362CA3 #4C40CC #7970D9 #A7A1E6

Accessibility & contrast

On white

7.21
#4C40CC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#4C40CC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C40CC
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C40CC#FFFFFF#000000##FFFFFF
##4C40CC1.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DD0
Deuteranopia (green-blind)
#0052C9
Tritanopia (blue-blind)
#006581
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #4c40cc;
/* rgb */ color: rgb(76, 64, 204);
/* oklch */ color: oklch(47.7% 0.207 278.9);
Tailwind
colors: {
  custom: {
    50: '#8d76dd',
    500: '#4c40cc',
    950: '#000000',
  },
}
SCSS
$custom: #4c40cc;
$custom-light: #8d76dd;
$custom-dark: #000000;
JSON
{
  "hex": "#4c40cc",
  "rgb": {
    "r": 76,
    "g": 64,
    "b": 204
  },
  "hsl": {
    "h": 245.143,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.47673,
    "c": 0.20669,
    "h": 278.9
  },
  "luminance": 0.09563
}

Semantic roles & 50–950 ramp

primary
#4C40CC
secondary
#CDD295
accent
#E147D4
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4C40CC

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

Preview Lab → · Contrast checker → · Palette generator →

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