#4851D4#4851D4

#4851D4 is a mid, vivid blue. Relative luminance 0.120; OKLCH L 50.9% C 0.198 H 273.9°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#4851D4
RGBrgb(72, 81, 212)
HSLhsl(236, 62%, 56%)
HSVhsv(236, 66%, 83%)
CMYKcmyk(66%, 61.8%, 0%, 16.9%)
CIE-LABlab(41.24, 37.70, -68.56)
CIE-LCHlch(41.24, 78.24, 298.81°)
OKLaboklab(50.86% 0.0136 -0.1977)
OKLCHoklch(50.86% 0.198 273.9)
XYZxyz(17.4946, 12.0145, 63.6717)
Luminance0.1202 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4851D4 #D4CB48
analogous
#4897D4 #4851D4 #8548D4
triadic
#4851D4 #D44851 #51D448
tetradic
#4851D4 #D44897 #D4CB48 #48D485
square
#4851D4 #D44897 #D4CB48 #48D485
split-complementary
#4851D4 #D48548 #97D448
monochromatic
#1F2583 #2A33B4 #4851D4 #7A80E0 #ABAFEB

Accessibility & contrast

On white

6.17
#4851D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#4851D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4851D4
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4851D4#FFFFFF#000000##FFFFFF
##4851D41.006.173.406.17
#FFFFFF6.171.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D8
Deuteranopia (green-blind)
#005BD1
Tritanopia (blue-blind)
#00728B
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #4851d4;
/* rgb */ color: rgb(72, 81, 212);
/* oklch */ color: oklch(50.9% 0.198 273.9);
Tailwind
colors: {
  custom: {
    50: '#8b82e2',
    500: '#4851d4',
    950: '#000000',
  },
}
SCSS
$custom: #4851d4;
$custom-light: #8b82e2;
$custom-dark: #000000;
JSON
{
  "hex": "#4851d4",
  "rgb": {
    "r": 72,
    "g": 81,
    "b": 212
  },
  "hsl": {
    "h": 236.143,
    "s": 61.947,
    "l": 55.686
  },
  "oklch": {
    "l": 0.50862,
    "c": 0.19815,
    "h": 273.9
  },
  "luminance": 0.12016
}

Semantic roles & 50–950 ramp

primary
#4851D4
secondary
#D9D59F
accent
#DB43E5
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0D0A15
muted
#7E7C84

Preview Lab

Preview with #4851D4

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

Preview Lab → · Contrast checker → · Palette generator →

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