#4851CD#4851CD

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

Color values

HEX#4851CD
RGBrgb(72, 81, 205)
HSLhsl(236, 57%, 54%)
HSVhsv(236, 65%, 80%)
CMYKcmyk(64.9%, 60.5%, 0%, 19.6%)
CIE-LABlab(40.69, 35.33, -65.43)
CIE-LCHlch(40.69, 74.36, 298.36°)
OKLaboklab(50.28% 0.0139 -0.1885)
OKLCHoklch(50.28% 0.189 274.2)
XYZxyz(16.6307, 11.6689, 59.1217)
Luminance0.1167 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4851CD #CDC448
analogous
#4894CD #4851CD #8248CD
triadic
#4851CD #CD4851 #51CD48
tetradic
#4851CD #CD4894 #CDC448 #48CD82
square
#4851CD #CD4894 #CDC448 #48CD82
split-complementary
#4851CD #CD8248 #94CD48
monochromatic
#212779 #2E37A9 #4851CD #787FDA #A8ACE7

Accessibility & contrast

On white

6.30
#4851CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#4851CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4851CD
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4851CD#FFFFFF#000000##FFFFFF
##4851CD1.006.303.336.30
#FFFFFF6.301.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D1
Deuteranopia (green-blind)
#005ACB
Tritanopia (blue-blind)
#007087
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #4851cd;
/* rgb */ color: rgb(72, 81, 205);
/* oklch */ color: oklch(50.3% 0.189 274.2);
Tailwind
colors: {
  custom: {
    50: '#8a82dd',
    500: '#4851cd',
    950: '#000000',
  },
}
SCSS
$custom: #4851cd;
$custom-light: #8a82dd;
$custom-dark: #000000;
JSON
{
  "hex": "#4851cd",
  "rgb": {
    "r": 72,
    "g": 81,
    "b": 205
  },
  "hsl": {
    "h": 235.94,
    "s": 57.082,
    "l": 54.314
  },
  "oklch": {
    "l": 0.50281,
    "c": 0.189,
    "h": 274.2
  },
  "luminance": 0.1167
}

Semantic roles & 50–950 ramp

primary
#4851CD
secondary
#D5D19C
accent
#D647E0
background
#F9F7FD
surface
#F1EEFB
border
#CBC9D4
text
#0D0A15
muted
#7E7C83

Preview Lab

Preview with #4851CD

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

Preview Lab → · Contrast checker → · Palette generator →

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