#4A51CC#4A51CC

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

Color values

HEX#4A51CC
RGBrgb(74, 81, 204)
HSLhsl(237, 56%, 55%)
HSVhsv(237, 64%, 80%)
CMYKcmyk(63.7%, 60.3%, 0%, 20%)
CIE-LABlab(40.73, 35.29, -64.77)
CIE-LCHlch(40.73, 73.76, 298.59°)
OKLaboklab(50.33% 0.0161 -0.1865)
OKLCHoklch(50.33% 0.187 274.9)
XYZxyz(16.6620, 11.6989, 58.4951)
Luminance0.1170 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A51CC #CCC54A
analogous
#4A92CC #4A51CC #844ACC
triadic
#4A51CC #CC4A51 #51CC4A
tetradic
#4A51CC #CC4A92 #CCC54A #4ACC84
square
#4A51CC #CC4A92 #CCC54A #4ACC84
split-complementary
#4A51CC #CC844A #92CC4A
monochromatic
#222779 #3036A9 #4A51CC #7A7FD9 #A9ADE7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4A51CC#FFFFFF#000000##FFFFFF
##4A51CC1.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)
#0066D0
Deuteranopia (green-blind)
#005ACA
Tritanopia (blue-blind)
#006F87
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #4a51cc;
/* rgb */ color: rgb(74, 81, 204);
/* oklch */ color: oklch(50.3% 0.187 274.9);
Tailwind
colors: {
  custom: {
    50: '#8a82dc',
    500: '#4a51cc',
    950: '#000000',
  },
}
SCSS
$custom: #4a51cc;
$custom-light: #8a82dc;
$custom-dark: #000000;
JSON
{
  "hex": "#4a51cc",
  "rgb": {
    "r": 74,
    "g": 81,
    "b": 204
  },
  "hsl": {
    "h": 236.769,
    "s": 56.034,
    "l": 54.51
  },
  "oklch": {
    "l": 0.50325,
    "c": 0.1872,
    "h": 274.9
  },
  "luminance": 0.117
}

Semantic roles & 50–950 ramp

primary
#4A51CC
secondary
#D4D19D
accent
#D748DF
background
#F9F7FD
surface
#F1EEFB
border
#CBC9D4
text
#0D0A15
muted
#7E7C83

Preview Lab

Preview with #4A51CC

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

Preview Lab → · Contrast checker → · Palette generator →

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