#4842D7#4842D7

#4842D7 is a mid, highly saturated blue. Relative luminance 0.102; OKLCH L 48.7% C 0.219 H 276.3°. Best body text is #FFFFFF at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#4842D7
RGBrgb(72, 66, 215)
HSLhsl(242, 65%, 55%)
HSVhsv(242, 69%, 84%)
CMYKcmyk(66.5%, 69.3%, 0%, 15.7%)
CIE-LABlab(38.16, 47.61, -75.32)
CIE-LCHlch(38.16, 89.11, 302.29°)
OKLaboklab(48.7% 0.024 -0.2175)
OKLCHoklch(48.7% 0.219 276.3)
XYZxyz(16.8824, 10.1790, 65.3519)
Luminance0.1018 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4842D7 #D1D742
analogous
#4287D7 #4842D7 #9242D7
triadic
#4842D7 #D74842 #42D748
tetradic
#4842D7 #D74287 #D1D742 #42D792
square
#4842D7 #D74287 #D1D742 #42D792
split-complementary
#4842D7 #D79242 #87D742
monochromatic
#201C83 #2C26B5 #4842D7 #7975E2 #AAA7EC

Accessibility & contrast

On white

6.92
#4842D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#4842D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4842D7
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4842D7#FFFFFF#000000##FFFFFF
##4842D71.006.923.046.92
#FFFFFF6.921.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060DB
Deuteranopia (green-blind)
#0053D4
Tritanopia (blue-blind)
#006B88
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #4842d7;
/* rgb */ color: rgb(72, 66, 215);
/* oklch */ color: oklch(48.7% 0.219 276.3);
Tailwind
colors: {
  custom: {
    50: '#8d78e5',
    500: '#4842d7',
    950: '#000000',
  },
}
SCSS
$custom: #4842d7;
$custom-light: #8d78e5;
$custom-dark: #000000;
JSON
{
  "hex": "#4842d7",
  "rgb": {
    "r": 72,
    "g": 66,
    "b": 215
  },
  "hsl": {
    "h": 242.416,
    "s": 65.066,
    "l": 55.098
  },
  "oklch": {
    "l": 0.48704,
    "c": 0.21886,
    "h": 276.3
  },
  "luminance": 0.1018
}

Semantic roles & 50–950 ramp

primary
#4842D7
secondary
#D7DA9B
accent
#E840E1
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #4842D7

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

Preview Lab → · Contrast checker → · Palette generator →

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