#4851CB#4851CB

#4851CB is a mid, vivid blue. Relative luminance 0.116; OKLCH L 50.1% C 0.186 H 274.3°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#4851CB
RGBrgb(72, 81, 203)
HSLhsl(236, 56%, 54%)
HSVhsv(236, 65%, 80%)
CMYKcmyk(64.5%, 60.1%, 0%, 20.4%)
CIE-LABlab(40.53, 34.65, -64.53)
CIE-LCHlch(40.53, 73.24, 298.23°)
OKLaboklab(50.12% 0.0139 -0.1858)
OKLCHoklch(50.12% 0.186 274.3)
XYZxyz(16.3908, 11.5730, 57.8584)
Luminance0.1157 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4851CB #CBC248
analogous
#4893CB #4851CB #8148CB
triadic
#4851CB #CB4851 #51CB48
tetradic
#4851CB #CB4893 #CBC248 #48CB81
square
#4851CB #CB4893 #CBC248 #48CB81
split-complementary
#4851CB #CB8148 #93CB48
monochromatic
#222877 #2F37A6 #4851CB #787ED9 #A7ACE6

Accessibility & contrast

On white

6.34
#4851CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#4851CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4851CB
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4851CB#FFFFFF#000000##FFFFFF
##4851CB1.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065CF
Deuteranopia (green-blind)
#005AC9
Tritanopia (blue-blind)
#006F86
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #4851cb;
/* rgb */ color: rgb(72, 81, 203);
/* oklch */ color: oklch(50.1% 0.186 274.3);
Tailwind
colors: {
  custom: {
    50: '#8982dc',
    500: '#4851cb',
    950: '#000000',
  },
}
SCSS
$custom: #4851cb;
$custom-light: #8982dc;
$custom-dark: #000000;
JSON
{
  "hex": "#4851cb",
  "rgb": {
    "r": 72,
    "g": 81,
    "b": 203
  },
  "hsl": {
    "h": 235.878,
    "s": 55.745,
    "l": 53.922
  },
  "oklch": {
    "l": 0.50117,
    "c": 0.18636,
    "h": 274.3
  },
  "luminance": 0.11574
}

Semantic roles & 50–950 ramp

primary
#4851CB
secondary
#D3D09B
accent
#D549DF
background
#F9F7FD
surface
#F1EEFB
border
#CBC9D4
text
#0D0A15
muted
#7E7C83

Preview Lab

Preview with #4851CB

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

Preview Lab → · Contrast checker → · Palette generator →

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