#4C52E5#4C52E5

#4C52E5 is a mid, highly saturated blue. Relative luminance 0.132; OKLCH L 52.7% C 0.218 H 274.3°. Best body text is #FFFFFF at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#4C52E5
RGBrgb(76, 82, 229)
HSLhsl(238, 75%, 60%)
HSVhsv(238, 67%, 90%)
CMYKcmyk(66.8%, 64.2%, 0%, 10.2%)
CIE-LABlab(43.10, 43.32, -75.20)
CIE-LCHlch(43.10, 86.79, 299.94°)
OKLaboklab(52.72% 0.0162 -0.2171)
OKLCHoklch(52.72% 0.218 274.3)
XYZxyz(20.1360, 13.2264, 75.6053)
Luminance0.1323 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C52E5 #E5DF4C
analogous
#4C9FE5 #4C52E5 #934CE5
triadic
#4C52E5 #E54C52 #52E54C
tetradic
#4C52E5 #E54C9F #E5DF4C #4CE593
square
#4C52E5 #E54C9F #E5DF4C #4CE593
split-complementary
#4C52E5 #E5934C #9FE54C
monochromatic
#171D9F #1F26D5 #4C52E5 #8186ED #B7B9F5

Accessibility & contrast

On white

5.76
#4C52E5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#4C52E5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C52E5
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C52E5#FFFFFF#000000##FFFFFF
##4C52E51.005.763.655.76
#FFFFFF5.761.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DEA
Deuteranopia (green-blind)
#005FE2
Tritanopia (blue-blind)
#007894
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #4c52e5;
/* rgb */ color: rgb(76, 82, 229);
/* oklch */ color: oklch(52.7% 0.218 274.3);
Tailwind
colors: {
  custom: {
    50: '#9083ee',
    500: '#4c52e5',
    950: '#000000',
  },
}
SCSS
$custom: #4c52e5;
$custom-light: #9083ee;
$custom-dark: #000000;
JSON
{
  "hex": "#4c52e5",
  "rgb": {
    "r": 76,
    "g": 82,
    "b": 229
  },
  "hsl": {
    "h": 237.647,
    "s": 74.634,
    "l": 59.804
  },
  "oklch": {
    "l": 0.52721,
    "c": 0.21767,
    "h": 274.3
  },
  "luminance": 0.13228
}

Semantic roles & 50–950 ramp

primary
#4C52E5
secondary
#E4E2A9
accent
#EA37F1
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0A17
muted
#7E7C85

Preview Lab

Preview with #4C52E5

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

Preview Lab → · Contrast checker → · Palette generator →

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