#4842D5#4842D5

#4842D5 is a mid, highly saturated blue. Relative luminance 0.101; OKLCH L 48.5% C 0.216 H 276.5°. Best body text is #FFFFFF at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#4842D5
RGBrgb(72, 66, 213)
HSLhsl(242, 64%, 55%)
HSVhsv(242, 69%, 84%)
CMYKcmyk(66.2%, 69%, 0%, 16.5%)
CIE-LABlab(37.98, 46.97, -74.47)
CIE-LCHlch(37.98, 88.04, 302.24°)
OKLaboklab(48.52% 0.0243 -0.215)
OKLCHoklch(48.52% 0.216 276.5)
XYZxyz(16.6270, 10.0768, 64.0067)
Luminance0.1008 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4842D5 #CFD542
analogous
#4286D5 #4842D5 #9242D5
triadic
#4842D5 #D54842 #42D548
tetradic
#4842D5 #D54286 #CFD542 #42D592
square
#4842D5 #D54286 #CFD542 #42D592
split-complementary
#4842D5 #D59242 #86D542
monochromatic
#211C80 #2D28B2 #4842D5 #7874E0 #A9A6EB

Accessibility & contrast

On white

6.96
#4842D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#4842D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4842D5
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4842D5#FFFFFF#000000##FFFFFF
##4842D51.006.963.026.96
#FFFFFF6.961.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D9
Deuteranopia (green-blind)
#0053D2
Tritanopia (blue-blind)
#006A86
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #4842d5;
/* rgb */ color: rgb(72, 66, 213);
/* oklch */ color: oklch(48.5% 0.216 276.5);
Tailwind
colors: {
  custom: {
    50: '#8c78e3',
    500: '#4842d5',
    950: '#000000',
  },
}
SCSS
$custom: #4842d5;
$custom-light: #8c78e3;
$custom-dark: #000000;
JSON
{
  "hex": "#4842d5",
  "rgb": {
    "r": 72,
    "g": 66,
    "b": 213
  },
  "hsl": {
    "h": 242.449,
    "s": 63.636,
    "l": 54.706
  },
  "oklch": {
    "l": 0.48518,
    "c": 0.21642,
    "h": 276.5
  },
  "luminance": 0.10078
}

Semantic roles & 50–950 ramp

primary
#4842D5
secondary
#D6D89A
accent
#E741E0
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #4842D5

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

Preview Lab → · Contrast checker → · Palette generator →

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