#4851CC#4851CC

#4851CC is a mid, vivid blue. Relative luminance 0.116; OKLCH L 50.2% C 0.188 H 274.2°. Best body text is #FFFFFF at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#4851CC
RGBrgb(72, 81, 204)
HSLhsl(236, 56%, 54%)
HSVhsv(236, 65%, 80%)
CMYKcmyk(64.7%, 60.3%, 0%, 20%)
CIE-LABlab(40.61, 34.99, -64.98)
CIE-LCHlch(40.61, 73.80, 298.30°)
OKLaboklab(50.2% 0.0139 -0.1872)
OKLCHoklch(50.2% 0.188 274.2)
XYZxyz(16.5104, 11.6208, 58.4880)
Luminance0.1162 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4851CC #CCC348
analogous
#4893CC #4851CC #8148CC
triadic
#4851CC #CC4851 #51CC48
tetradic
#4851CC #CC4893 #CCC348 #48CC81
square
#4851CC #CC4893 #CCC348 #48CC81
split-complementary
#4851CC #CC8148 #93CC48
monochromatic
#212778 #2F37A8 #4851CC #787FD9 #A8ACE7

Accessibility & contrast

On white

6.32
#4851CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#4851CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4851CC
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4851CC#FFFFFF#000000##FFFFFF
##4851CC1.006.323.326.32
#FFFFFF6.321.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D0
Deuteranopia (green-blind)
#005ACA
Tritanopia (blue-blind)
#007087
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #4851cc;
/* rgb */ color: rgb(72, 81, 204);
/* oklch */ color: oklch(50.2% 0.188 274.2);
Tailwind
colors: {
  custom: {
    50: '#8982dc',
    500: '#4851cc',
    950: '#000000',
  },
}
SCSS
$custom: #4851cc;
$custom-light: #8982dc;
$custom-dark: #000000;
JSON
{
  "hex": "#4851cc",
  "rgb": {
    "r": 72,
    "g": 81,
    "b": 204
  },
  "hsl": {
    "h": 235.909,
    "s": 56.41,
    "l": 54.118
  },
  "oklch": {
    "l": 0.50199,
    "c": 0.18768,
    "h": 274.2
  },
  "luminance": 0.11622
}

Semantic roles & 50–950 ramp

primary
#4851CC
secondary
#D4D09C
accent
#D548E0
background
#F9F7FD
surface
#F1EEFB
border
#CBC9D4
text
#0D0A15
muted
#7E7C83

Preview Lab

Preview with #4851CC

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

Preview Lab → · Contrast checker → · Palette generator →

#4851CC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva