#4851BB#4851BB

#4851BB is a mid, vivid blue. Relative luminance 0.108; OKLCH L 48.8% C 0.165 H 274.8°. Best body text is #FFFFFF at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#4851BB
RGBrgb(72, 81, 187)
HSLhsl(235, 46%, 51%)
HSVhsv(235, 61%, 73%)
CMYKcmyk(61.5%, 56.7%, 0%, 26.7%)
CIE-LABlab(39.33, 29.19, -57.17)
CIE-LCHlch(39.33, 64.20, 297.05°)
OKLaboklab(48.85% 0.0139 -0.1642)
OKLCHoklch(48.85% 0.165 274.8)
XYZxyz(14.5816, 10.8493, 48.3298)
Luminance0.1085 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4851BB #BBB248
analogous
#488ABB #4851BB #7848BB
triadic
#4851BB #BB4851 #51BB48
tetradic
#4851BB #BB488A #BBB248 #48BB78
square
#4851BB #BB488A #BBB248 #48BB78
split-complementary
#4851BB #BB7848 #8ABB48
monochromatic
#252A64 #363D90 #4851BB #757BCC #A1A6DC

Accessibility & contrast

On white

6.62
#4851BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#4851BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4851BB
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4851BB#FFFFFF#000000##FFFFFF
##4851BB1.006.623.176.62
#FFFFFF6.621.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062BF
Deuteranopia (green-blind)
#0058B9
Tritanopia (blue-blind)
#006A7E
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #4851bb;
/* rgb */ color: rgb(72, 81, 187);
/* oklch */ color: oklch(48.8% 0.165 274.8);
Tailwind
colors: {
  custom: {
    50: '#8681d0',
    500: '#4851bb',
    950: '#000000',
  },
}
SCSS
$custom: #4851bb;
$custom-light: #8681d0;
$custom-dark: #000000;
JSON
{
  "hex": "#4851bb",
  "rgb": {
    "r": 72,
    "g": 81,
    "b": 187
  },
  "hsl": {
    "h": 235.304,
    "s": 45.817,
    "l": 50.784
  },
  "oklch": {
    "l": 0.48845,
    "c": 0.16481,
    "h": 274.8
  },
  "luminance": 0.1085
}

Semantic roles & 50–950 ramp

primary
#4851BB
secondary
#C9C596
accent
#CB52D5
background
#F8F7FC
surface
#F0EEF9
border
#CBC9D2
text
#0C0A14
muted
#7D7C82

Preview Lab

Preview with #4851BB

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

Preview Lab → · Contrast checker → · Palette generator →

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