#4857CC#4857CC

#4857CC is a mid, vivid blue. Relative luminance 0.126; OKLCH L 51.3% C 0.180 H 272.8°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#4857CC
RGBrgb(72, 87, 204)
HSLhsl(233, 56%, 54%)
HSVhsv(233, 65%, 80%)
CMYKcmyk(64.7%, 57.4%, 0%, 20%)
CIE-LABlab(42.08, 31.23, -62.58)
CIE-LCHlch(42.08, 69.94, 296.52°)
OKLaboklab(51.29% 0.0088 -0.1801)
OKLCHoklch(51.29% 0.18 272.8)
XYZxyz(16.9761, 12.5522, 58.6432)
Luminance0.1255 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4857CC #CCBD48
analogous
#4899CC #4857CC #7B48CC
triadic
#4857CC #CC4857 #57CC48
tetradic
#4857CC #CC4899 #CCBD48 #48CC7B
square
#4857CC #CC4899 #CCBD48 #48CC7B
split-complementary
#4857CC #CC7B48 #99CC48
monochromatic
#212B78 #2F3DA8 #4857CC #7883D9 #A8AFE7

Accessibility & contrast

On white

5.98
#4857CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#4857CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4857CC
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4857CC#FFFFFF#000000##FFFFFF
##4857CC1.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D0
Deuteranopia (green-blind)
#005ECA
Tritanopia (blue-blind)
#007389
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #4857cc;
/* rgb */ color: rgb(72, 87, 204);
/* oklch */ color: oklch(51.3% 0.180 272.8);
Tailwind
colors: {
  custom: {
    50: '#8986dc',
    500: '#4857cc',
    950: '#000000',
  },
}
SCSS
$custom: #4857cc;
$custom-light: #8986dc;
$custom-dark: #000000;
JSON
{
  "hex": "#4857cc",
  "rgb": {
    "r": 72,
    "g": 87,
    "b": 204
  },
  "hsl": {
    "h": 233.182,
    "s": 56.41,
    "l": 54.118
  },
  "oklch": {
    "l": 0.51292,
    "c": 0.18028,
    "h": 272.8
  },
  "luminance": 0.12554
}

Semantic roles & 50–950 ramp

primary
#4857CC
secondary
#D4CE9C
accent
#CE48E0
background
#F9F8FD
surface
#F1EFFB
border
#CBCAD4
text
#0D0B15
muted
#7E7C83

Preview Lab

Preview with #4857CC

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

Preview Lab → · Contrast checker → · Palette generator →

#4857CC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva