#4C51DC#4C51DC

#4C51DC is a mid, highly saturated blue. Relative luminance 0.126; OKLCH L 51.8% C 0.207 H 274.9°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#4C51DC
RGBrgb(76, 81, 220)
HSLhsl(238, 67%, 58%)
HSVhsv(238, 65%, 86%)
CMYKcmyk(65.5%, 63.2%, 0%, 13.7%)
CIE-LABlab(42.13, 40.94, -71.67)
CIE-LCHlch(42.13, 82.53, 299.73°)
OKLaboklab(51.78% 0.0176 -0.2067)
OKLCHoklch(51.78% 0.207 274.9)
XYZxyz(18.8369, 12.5870, 69.1331)
Luminance0.1259 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C51DC #DCD74C
analogous
#4C99DC #4C51DC #8F4CDC
triadic
#4C51DC #DC4C51 #51DC4C
tetradic
#4C51DC #DC4C99 #DCD74C #4CDC8F
square
#4C51DC #DC4C99 #DCD74C #4CDC8F
split-complementary
#4C51DC #DC8F4C #99DC4C
monochromatic
#1C2091 #262CC4 #4C51DC #7F83E6 #B2B5F0

Accessibility & contrast

On white

5.97
#4C51DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#4C51DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C51DC
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C51DC#FFFFFF#000000##FFFFFF
##4C51DC1.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AE0
Deuteranopia (green-blind)
#005DD9
Tritanopia (blue-blind)
#00758F
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #4c51dc;
/* rgb */ color: rgb(76, 81, 220);
/* oklch */ color: oklch(51.8% 0.207 274.9);
Tailwind
colors: {
  custom: {
    50: '#8e82e8',
    500: '#4c51dc',
    950: '#000000',
  },
}
SCSS
$custom: #4c51dc;
$custom-light: #8e82e8;
$custom-dark: #000000;
JSON
{
  "hex": "#4c51dc",
  "rgb": {
    "r": 76,
    "g": 81,
    "b": 220
  },
  "hsl": {
    "h": 237.917,
    "s": 67.29,
    "l": 58.039
  },
  "oklch": {
    "l": 0.51784,
    "c": 0.20745,
    "h": 274.9
  },
  "luminance": 0.12589
}

Semantic roles & 50–950 ramp

primary
#4C51DC
secondary
#DFDDA5
accent
#E43EEA
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #4C51DC

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

Preview Lab → · Contrast checker → · Palette generator →

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