#4851CE#4851CE

#4851CE is a mid, vivid blue. Relative luminance 0.117; OKLCH L 50.4% C 0.190 H 274.2°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#4851CE
RGBrgb(72, 81, 206)
HSLhsl(236, 58%, 55%)
HSVhsv(236, 65%, 81%)
CMYKcmyk(65%, 60.7%, 0%, 19.2%)
CIE-LABlab(40.76, 35.67, -65.88)
CIE-LCHlch(40.76, 74.92, 298.43°)
OKLaboklab(50.36% 0.0138 -0.1898)
OKLCHoklch(50.36% 0.19 274.2)
XYZxyz(16.7518, 11.7173, 59.7594)
Luminance0.1172 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4851CE #CEC548
analogous
#4894CE #4851CE #8248CE
triadic
#4851CE #CE4851 #51CE48
tetradic
#4851CE #CE4894 #CEC548 #48CE82
square
#4851CE #CE4894 #CEC548 #48CE82
split-complementary
#4851CE #CE8248 #94CE48
monochromatic
#21277B #2E36AB #4851CE #787FDB #A9ADE8

Accessibility & contrast

On white

6.28
#4851CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#4851CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4851CE
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4851CE#FFFFFF#000000##FFFFFF
##4851CE1.006.283.346.28
#FFFFFF6.281.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D2
Deuteranopia (green-blind)
#005ACC
Tritanopia (blue-blind)
#007088
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #4851ce;
/* rgb */ color: rgb(72, 81, 206);
/* oklch */ color: oklch(50.4% 0.190 274.2);
Tailwind
colors: {
  custom: {
    50: '#8a82de',
    500: '#4851ce',
    950: '#000000',
  },
}
SCSS
$custom: #4851ce;
$custom-light: #8a82de;
$custom-dark: #000000;
JSON
{
  "hex": "#4851ce",
  "rgb": {
    "r": 72,
    "g": 81,
    "b": 206
  },
  "hsl": {
    "h": 235.97,
    "s": 57.759,
    "l": 54.51
  },
  "oklch": {
    "l": 0.50363,
    "c": 0.19031,
    "h": 274.2
  },
  "luminance": 0.11719
}

Semantic roles & 50–950 ramp

primary
#4851CE
secondary
#D5D19D
accent
#D747E1
background
#F9F7FD
surface
#F1EEFB
border
#CBC9D4
text
#0D0A15
muted
#7E7C83

Preview Lab

Preview with #4851CE

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

Preview Lab → · Contrast checker → · Palette generator →

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