#4C51BE#4C51BE

#4C51BE is a mid, vivid blue. Relative luminance 0.111; OKLCH L 49.3% C 0.168 H 276.3°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#4C51BE
RGBrgb(76, 81, 190)
HSLhsl(237, 47%, 52%)
HSVhsv(237, 60%, 75%)
CMYKcmyk(60%, 57.4%, 0%, 25.5%)
CIE-LABlab(39.81, 30.91, -58.13)
CIE-LCHlch(39.81, 65.84, 298.00°)
OKLaboklab(49.35% 0.0186 -0.1669)
OKLCHoklch(49.35% 0.168 276.3)
XYZxyz(15.2142, 11.1379, 50.0533)
Luminance0.1114 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C51BE #BEB94C
analogous
#4C8ABE #4C51BE #804CBE
triadic
#4C51BE #BE4C51 #51BE4C
tetradic
#4C51BE #BE4C8A #BEB94C #4CBE80
square
#4C51BE #BE4C8A #BEB94C #4CBE80
split-complementary
#4C51BE #BE804C #8ABE4C
monochromatic
#262969 #373B96 #4C51BE #797DCE #A6A8DF

Accessibility & contrast

On white

6.51
#4C51BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#4C51BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C51BE
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C51BE#FFFFFF#000000##FFFFFF
##4C51BE1.006.513.236.51
#FFFFFF6.511.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C2
Deuteranopia (green-blind)
#0059BC
Tritanopia (blue-blind)
#006B7F
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #4c51be;
/* rgb */ color: rgb(76, 81, 190);
/* oklch */ color: oklch(49.3% 0.168 276.3);
Tailwind
colors: {
  custom: {
    50: '#8982d2',
    500: '#4c51be',
    950: '#000000',
  },
}
SCSS
$custom: #4c51be;
$custom-light: #8982d2;
$custom-dark: #000000;
JSON
{
  "hex": "#4c51be",
  "rgb": {
    "r": 76,
    "g": 81,
    "b": 190
  },
  "hsl": {
    "h": 237.368,
    "s": 46.721,
    "l": 52.157
  },
  "oklch": {
    "l": 0.49346,
    "c": 0.16795,
    "h": 276.3
  },
  "luminance": 0.11139
}

Semantic roles & 50–950 ramp

primary
#4C51BE
secondary
#CCCA9A
accent
#D151D6
background
#F8F7FD
surface
#F0EEFA
border
#CBC9D3
text
#0D0A14
muted
#7D7C83

Preview Lab

Preview with #4C51BE

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

Preview Lab → · Contrast checker → · Palette generator →

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