#4C51CA#4C51CA

#4C51CA is a mid, vivid blue. Relative luminance 0.117; OKLCH L 50.3% C 0.184 H 275.8°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#4C51CA
RGBrgb(76, 81, 202)
HSLhsl(238, 54%, 55%)
HSVhsv(238, 62%, 79%)
CMYKcmyk(62.4%, 59.9%, 0%, 20.8%)
CIE-LABlab(40.71, 34.93, -63.65)
CIE-LCHlch(40.71, 72.60, 298.76°)
OKLaboklab(50.29% 0.0185 -0.1831)
OKLCHoklch(50.29% 0.184 275.8)
XYZxyz(16.5801, 11.6843, 57.2472)
Luminance0.1169 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C51CA #CAC54C
analogous
#4C90CA #4C51CA #864CCA
triadic
#4C51CA #CA4C51 #51CA4C
tetradic
#4C51CA #CA4C90 #CAC54C #4CCA86
square
#4C51CA #CA4C90 #CAC54C #4CCA86
split-complementary
#4C51CA #CA864C #90CA4C
monochromatic
#242778 #3236A7 #4C51CA #7B7FD8 #AAADE6

Accessibility & contrast

On white

6.29
#4C51CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#4C51CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4C51CA
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C51CA#FFFFFF#000000##FFFFFF
##4C51CA1.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066CE
Deuteranopia (green-blind)
#005BC8
Tritanopia (blue-blind)
#006F86
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #4c51ca;
/* rgb */ color: rgb(76, 81, 202);
/* oklch */ color: oklch(50.3% 0.184 275.8);
Tailwind
colors: {
  custom: {
    50: '#8b82db',
    500: '#4c51ca',
    950: '#000000',
  },
}
SCSS
$custom: #4c51ca;
$custom-light: #8b82db;
$custom-dark: #000000;
JSON
{
  "hex": "#4c51ca",
  "rgb": {
    "r": 76,
    "g": 81,
    "b": 202
  },
  "hsl": {
    "h": 237.619,
    "s": 54.31,
    "l": 54.51
  },
  "oklch": {
    "l": 0.50294,
    "c": 0.18407,
    "h": 275.8
  },
  "luminance": 0.11686
}

Semantic roles & 50–950 ramp

primary
#4C51CA
secondary
#D4D19E
accent
#D84ADE
background
#F9F7FD
surface
#F1EEFB
border
#CBC9D4
text
#0D0A15
muted
#7E7C83

Preview Lab

Preview with #4C51CA

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

Preview Lab → · Contrast checker → · Palette generator →

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