#4851EB#4851EB

#4851EB is a mid, highly saturated blue. Relative luminance 0.133; OKLCH L 52.8% C 0.227 H 273.0°. Best body text is #FFFFFF at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#4851EB
RGBrgb(72, 81, 235)
HSLhsl(237, 80%, 60%)
HSVhsv(237, 69%, 92%)
CMYKcmyk(69.4%, 65.5%, 0%, 7.8%)
CIE-LABlab(43.15, 45.41, -78.53)
CIE-LCHlch(43.15, 90.71, 300.04°)
OKLaboklab(52.85% 0.012 -0.2269)
OKLCHoklch(52.85% 0.227 273)
XYZxyz(20.6053, 13.2587, 80.0544)
Luminance0.1326 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4851EB #EBE248
analogous
#48A3EB #4851EB #9048EB
triadic
#4851EB #EB4851 #51EB48
tetradic
#4851EB #EB48A3 #EBE248 #48EB90
square
#4851EB #EB48A3 #EBE248 #48EB90
split-complementary
#4851EB #EB9048 #A3EB48
monochromatic
#121AA6 #1823DE #4851EB #7F85F1 #B6BAF7

Accessibility & contrast

On white

5.75
#4851EB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#4851EB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4851EB
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4851EB#FFFFFF#000000##FFFFFF
##4851EB1.005.753.655.75
#FFFFFF5.751.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EF0
Deuteranopia (green-blind)
#005EE8
Tritanopia (blue-blind)
#007A97
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #4851eb;
/* rgb */ color: rgb(72, 81, 235);
/* oklch */ color: oklch(52.8% 0.227 273.0);
Tailwind
colors: {
  custom: {
    50: '#9082f3',
    500: '#4851eb',
    950: '#000000',
  },
}
SCSS
$custom: #4851eb;
$custom-light: #9082f3;
$custom-dark: #000000;
JSON
{
  "hex": "#4851eb",
  "rgb": {
    "r": 72,
    "g": 81,
    "b": 235
  },
  "hsl": {
    "h": 236.687,
    "s": 80.296,
    "l": 60.196
  },
  "oklch": {
    "l": 0.52849,
    "c": 0.22722,
    "h": 273
  },
  "luminance": 0.13261
}

Semantic roles & 50–950 ramp

primary
#4851EB
secondary
#E7E3A8
accent
#D109DD
background
#F9F8FF
surface
#F2EFFE
border
#CCCAD6
text
#0E0A17
muted
#7E7C85

Preview Lab

Preview with #4851EB

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

Preview Lab → · Contrast checker → · Palette generator →

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