#4C51D6#4C51D6

#4C51D6 is a mid, vivid blue. Relative luminance 0.123; OKLCH L 51.3% C 0.200 H 275.2°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#4C51D6
RGBrgb(76, 81, 214)
HSLhsl(238, 63%, 57%)
HSVhsv(238, 64%, 84%)
CMYKcmyk(64.5%, 62.1%, 0%, 16.1%)
CIE-LABlab(41.65, 38.94, -69.03)
CIE-LCHlch(41.65, 79.25, 299.43°)
OKLaboklab(51.28% 0.018 -0.1989)
OKLCHoklch(51.28% 0.2 275.2)
XYZxyz(18.0565, 12.2749, 65.0230)
Luminance0.1228 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C51D6 #D6D14C
analogous
#4C96D6 #4C51D6 #8C4CD6
triadic
#4C51D6 #D64C51 #51D64C
tetradic
#4C51D6 #D64C96 #D6D14C #4CD68C
square
#4C51D6 #D64C96 #D6D14C #4CD68C
split-complementary
#4C51D6 #D68C4C #96D64C
monochromatic
#1F2388 #2B30BA #4C51D6 #7E81E1 #B0B2ED

Accessibility & contrast

On white

6.08
#4C51D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#4C51D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C51D6
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C51D6#FFFFFF#000000##FFFFFF
##4C51D61.006.083.466.08
#FFFFFF6.081.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068DA
Deuteranopia (green-blind)
#005CD3
Tritanopia (blue-blind)
#00738C
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #4c51d6;
/* rgb */ color: rgb(76, 81, 214);
/* oklch */ color: oklch(51.3% 0.200 275.2);
Tailwind
colors: {
  custom: {
    50: '#8d82e4',
    500: '#4c51d6',
    950: '#000000',
  },
}
SCSS
$custom: #4c51d6;
$custom-light: #8d82e4;
$custom-dark: #000000;
JSON
{
  "hex": "#4c51d6",
  "rgb": {
    "r": 76,
    "g": 81,
    "b": 214
  },
  "hsl": {
    "h": 237.826,
    "s": 62.727,
    "l": 56.863
  },
  "oklch": {
    "l": 0.51279,
    "c": 0.19976,
    "h": 275.2
  },
  "luminance": 0.12276
}

Semantic roles & 50–950 ramp

primary
#4C51D6
secondary
#DBD9A3
accent
#E042E6
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #4C51D6

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

Preview Lab → · Contrast checker → · Palette generator →

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