#4862DC#4862DC

#4862DC is a mid, vivid blue. Relative luminance 0.153; OKLCH L 54.6% C 0.188 H 270.0°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#4862DC
RGBrgb(72, 98, 220)
HSLhsl(229, 68%, 57%)
HSVhsv(229, 67%, 86%)
CMYKcmyk(67.3%, 55.5%, 0%, 13.7%)
CIE-LABlab(46.01, 29.87, -65.36)
CIE-LCHlch(46.01, 71.86, 294.56°)
OKLaboklab(54.6% -0.0001 -0.1881)
OKLCHoklch(54.6% 0.188 270)
XYZxyz(19.9540, 15.2785, 69.5937)
Luminance0.1528 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4862DC #DCC248
analogous
#48ACDC #4862DC #7848DC
triadic
#4862DC #DC4862 #62DC48
tetradic
#4862DC #DC48AC #DCC248 #48DC78
square
#4862DC #DC48AC #DCC248 #48DC78
split-complementary
#4862DC #DC7848 #ACDC48
monochromatic
#1B2F8E #2541C2 #4862DC #7B8EE6 #AFBAF0

Accessibility & contrast

On white

5.18
#4862DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#4862DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4862DC
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4862DC#FFFFFF#000000##FFFFFF
##4862DC1.005.184.065.18
#FFFFFF5.181.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074E0
Deuteranopia (green-blind)
#0066DA
Tritanopia (blue-blind)
#008095
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #4862dc;
/* rgb */ color: rgb(72, 98, 220);
/* oklch */ color: oklch(54.6% 0.188 270.0);
Tailwind
colors: {
  custom: {
    50: '#8b8ee8',
    500: '#4862dc',
    950: '#000000',
  },
}
SCSS
$custom: #4862dc;
$custom-light: #8b8ee8;
$custom-dark: #000000;
JSON
{
  "hex": "#4862dc",
  "rgb": {
    "r": 72,
    "g": 98,
    "b": 220
  },
  "hsl": {
    "h": 229.459,
    "s": 67.89,
    "l": 57.255
  },
  "oklch": {
    "l": 0.54597,
    "c": 0.1881,
    "h": 270
  },
  "luminance": 0.1528
}

Semantic roles & 50–950 ramp

primary
#4862DC
secondary
#DED3A2
accent
#CC3DEB
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0D0C16
muted
#7E7D84

Preview Lab

Preview with #4862DC

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

Preview Lab → · Contrast checker → · Palette generator →

#4862DC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva