#4C51DF#4C51DF

#4C51DF is a mid, highly saturated blue. Relative luminance 0.127; OKLCH L 52.0% C 0.211 H 274.7°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#4C51DF
RGBrgb(76, 81, 223)
HSLhsl(238, 70%, 59%)
HSVhsv(238, 66%, 87%)
CMYKcmyk(65.9%, 63.7%, 0%, 12.5%)
CIE-LABlab(42.38, 41.93, -72.98)
CIE-LCHlch(42.38, 84.16, 299.88°)
OKLaboklab(52.04% 0.0174 -0.2105)
OKLCHoklch(52.04% 0.211 274.7)
XYZxyz(19.2378, 12.7474, 71.2444)
Luminance0.1275 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C51DF #DFDA4C
analogous
#4C9ADF #4C51DF #904CDF
triadic
#4C51DF #DF4C51 #51DF4C
tetradic
#4C51DF #DF4C9A #DFDA4C #4CDF90
square
#4C51DF #DF4C9A #DFDA4C #4CDF90
split-complementary
#4C51DF #DF904C #9ADF4C
monochromatic
#1B1F96 #242ACA #4C51DF #8083E8 #B4B6F2

Accessibility & contrast

On white

5.92
#4C51DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#4C51DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C51DF
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C51DF#FFFFFF#000000##FFFFFF
##4C51DF1.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BE4
Deuteranopia (green-blind)
#005DDC
Tritanopia (blue-blind)
#007691
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #4c51df;
/* rgb */ color: rgb(76, 81, 223);
/* oklch */ color: oklch(52.0% 0.211 274.7);
Tailwind
colors: {
  custom: {
    50: '#8f82ea',
    500: '#4c51df',
    950: '#000000',
  },
}
SCSS
$custom: #4c51df;
$custom-light: #8f82ea;
$custom-dark: #000000;
JSON
{
  "hex": "#4c51df",
  "rgb": {
    "r": 76,
    "g": 81,
    "b": 223
  },
  "hsl": {
    "h": 237.959,
    "s": 69.668,
    "l": 58.627
  },
  "oklch": {
    "l": 0.5204,
    "c": 0.21125,
    "h": 274.7
  },
  "luminance": 0.12749
}

Semantic roles & 50–950 ramp

primary
#4C51DF
secondary
#E0DEA6
accent
#E63BEC
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #4C51DF

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

Preview Lab → · Contrast checker → · Palette generator →

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