#4842DC#4842DC

#4842DC is a mid, highly saturated blue. Relative luminance 0.104; OKLCH L 49.2% C 0.225 H 275.9°. Best body text is #FFFFFF at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#4842DC
RGBrgb(72, 66, 220)
HSLhsl(242, 69%, 56%)
HSVhsv(242, 70%, 86%)
CMYKcmyk(67.3%, 70%, 0%, 13.7%)
CIE-LABlab(38.62, 49.20, -77.44)
CIE-LCHlch(38.62, 91.75, 302.43°)
OKLaboklab(49.17% 0.0233 -0.2237)
OKLCHoklch(49.17% 0.225 275.9)
XYZxyz(17.5347, 10.4399, 68.7873)
Luminance0.1044 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4842DC #D6DC42
analogous
#4289DC #4842DC #9542DC
triadic
#4842DC #DC4842 #42DC48
tetradic
#4842DC #DC4289 #D6DC42 #42DC95
square
#4842DC #DC4289 #D6DC42 #42DC95
split-complementary
#4842DC #DC9542 #89DC42
monochromatic
#1E1A8A #2923BE #4842DC #7A76E6 #ACA9EF

Accessibility & contrast

On white

6.80
#4842DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#4842DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4842DC
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4842DC#FFFFFF#000000##FFFFFF
##4842DC1.006.803.096.80
#FFFFFF6.801.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062E1
Deuteranopia (green-blind)
#0054D9
Tritanopia (blue-blind)
#006C8A
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #4842dc;
/* rgb */ color: rgb(72, 66, 220);
/* oklch */ color: oklch(49.2% 0.225 275.9);
Tailwind
colors: {
  custom: {
    50: '#8e78e8',
    500: '#4842dc',
    950: '#000000',
  },
}
SCSS
$custom: #4842dc;
$custom-light: #8e78e8;
$custom-dark: #000000;
JSON
{
  "hex": "#4842dc",
  "rgb": {
    "r": 72,
    "g": 66,
    "b": 220
  },
  "hsl": {
    "h": 242.338,
    "s": 68.75,
    "l": 56.078
  },
  "oklch": {
    "l": 0.49172,
    "c": 0.22493,
    "h": 275.9
  },
  "luminance": 0.10441
}

Semantic roles & 50–950 ramp

primary
#4842DC
secondary
#DADD9D
accent
#EC3CE5
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #4842DC

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

Preview Lab → · Contrast checker → · Palette generator →

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