#4A51CE#4A51CE

#4A51CE is a mid, vivid blue. Relative luminance 0.118; OKLCH L 50.5% C 0.190 H 274.9°. Best body text is #FFFFFF at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#4A51CE
RGBrgb(74, 81, 206)
HSLhsl(237, 57%, 55%)
HSVhsv(237, 64%, 81%)
CMYKcmyk(64.1%, 60.7%, 0%, 19.2%)
CIE-LABlab(40.89, 35.97, -65.67)
CIE-LCHlch(40.89, 74.87, 298.71°)
OKLaboklab(50.49% 0.0161 -0.1891)
OKLCHoklch(50.49% 0.19 274.9)
XYZxyz(16.9034, 11.7955, 59.7665)
Luminance0.1180 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A51CE #CEC74A
analogous
#4A93CE #4A51CE #854ACE
triadic
#4A51CE #CE4A51 #51CE4A
tetradic
#4A51CE #CE4A93 #CEC74A #4ACE85
square
#4A51CE #CE4A93 #CEC74A #4ACE85
split-complementary
#4A51CE #CE854A #93CE4A
monochromatic
#22267C #2F35AC #4A51CE #7A7FDB #AAAEE8

Accessibility & contrast

On white

6.25
#4A51CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#4A51CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4A51CE
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A51CE#FFFFFF#000000##FFFFFF
##4A51CE1.006.253.366.25
#FFFFFF6.251.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D2
Deuteranopia (green-blind)
#005BCC
Tritanopia (blue-blind)
#007088
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #4a51ce;
/* rgb */ color: rgb(74, 81, 206);
/* oklch */ color: oklch(50.5% 0.190 274.9);
Tailwind
colors: {
  custom: {
    50: '#8b82de',
    500: '#4a51ce',
    950: '#000000',
  },
}
SCSS
$custom: #4a51ce;
$custom-light: #8b82de;
$custom-dark: #000000;
JSON
{
  "hex": "#4a51ce",
  "rgb": {
    "r": 74,
    "g": 81,
    "b": 206
  },
  "hsl": {
    "h": 236.818,
    "s": 57.391,
    "l": 54.902
  },
  "oklch": {
    "l": 0.50489,
    "c": 0.18982,
    "h": 274.9
  },
  "luminance": 0.11797
}

Semantic roles & 50–950 ramp

primary
#4A51CE
secondary
#D6D39E
accent
#D847E1
background
#F9F7FD
surface
#F1EEFB
border
#CBC9D4
text
#0D0A15
muted
#7E7C83

Preview Lab

Preview with #4A51CE

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

Preview Lab → · Contrast checker → · Palette generator →

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