#4851E2#4851E2

#4851E2 is a mid, highly saturated blue. Relative luminance 0.128; OKLCH L 52.1% C 0.216 H 273.4°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#4851E2
RGBrgb(72, 81, 226)
HSLhsl(236, 73%, 58%)
HSVhsv(236, 68%, 89%)
CMYKcmyk(68.1%, 64.2%, 0%, 11.4%)
CIE-LABlab(42.39, 42.41, -74.68)
CIE-LCHlch(42.39, 85.88, 299.59°)
OKLaboklab(52.06% 0.0127 -0.2156)
OKLCHoklch(52.06% 0.216 273.4)
XYZxyz(19.3378, 12.7517, 73.3790)
Luminance0.1275 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4851E2 #E2D948
analogous
#489EE2 #4851E2 #8C48E2
triadic
#4851E2 #E24851 #51E248
tetradic
#4851E2 #E2489E #E2D948 #48E28C
square
#4851E2 #E2489E #E2D948 #48E28C
split-complementary
#4851E2 #E28C48 #9EE248
monochromatic
#181F98 #202ACC #4851E2 #7D83EA #B2B5F3

Accessibility & contrast

On white

5.91
#4851E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#4851E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4851E2
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4851E2#FFFFFF#000000##FFFFFF
##4851E21.005.913.555.91
#FFFFFF5.911.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BE7
Deuteranopia (green-blind)
#005DDF
Tritanopia (blue-blind)
#007792
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #4851e2;
/* rgb */ color: rgb(72, 81, 226);
/* oklch */ color: oklch(52.1% 0.216 273.4);
Tailwind
colors: {
  custom: {
    50: '#8e82ec',
    500: '#4851e2',
    950: '#000000',
  },
}
SCSS
$custom: #4851e2;
$custom-light: #8e82ec;
$custom-dark: #000000;
JSON
{
  "hex": "#4851e2",
  "rgb": {
    "r": 72,
    "g": 81,
    "b": 226
  },
  "hsl": {
    "h": 236.494,
    "s": 72.642,
    "l": 58.431
  },
  "oklch": {
    "l": 0.52058,
    "c": 0.21601,
    "h": 273.4
  },
  "luminance": 0.12754
}

Semantic roles & 50–950 ramp

primary
#4851E2
secondary
#E1DEA4
accent
#E538EF
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #4851E2

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

Preview Lab → · Contrast checker → · Palette generator →

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