#4842E2#4842E2

#4842E2 is a mid, highly saturated blue. Relative luminance 0.108; OKLCH L 49.7% C 0.232 H 275.5°. Best body text is #FFFFFF at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#4842E2
RGBrgb(72, 66, 226)
HSLhsl(242, 73%, 57%)
HSVhsv(242, 71%, 89%)
CMYKcmyk(68.1%, 70.8%, 0%, 11.4%)
CIE-LABlab(39.18, 51.11, -79.95)
CIE-LCHlch(39.18, 94.89, 302.59°)
OKLaboklab(49.74% 0.0223 -0.231)
OKLCHoklch(49.74% 0.232 275.5)
XYZxyz(18.3437, 10.7634, 73.0476)
Luminance0.1076 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4842E2 #DCE242
analogous
#428CE2 #4842E2 #9842E2
triadic
#4842E2 #E24842 #42E248
tetradic
#4842E2 #E2428C #DCE242 #42E298
square
#4842E2 #E2428C #DCE242 #42E298
split-complementary
#4842E2 #E29842 #8CE242
monochromatic
#1B1793 #251FC8 #4842E2 #7B77EA #AFACF2

Accessibility & contrast

On white

6.66
#4842E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#4842E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4842E2
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4842E2#FFFFFF#000000##FFFFFF
##4842E21.006.663.156.66
#FFFFFF6.661.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063E7
Deuteranopia (green-blind)
#0055DF
Tritanopia (blue-blind)
#006F8E
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #4842e2;
/* rgb */ color: rgb(72, 66, 226);
/* oklch */ color: oklch(49.7% 0.232 275.5);
Tailwind
colors: {
  custom: {
    50: '#8f78ec',
    500: '#4842e2',
    950: '#000000',
  },
}
SCSS
$custom: #4842e2;
$custom-light: #8f78ec;
$custom-dark: #000000;
JSON
{
  "hex": "#4842e2",
  "rgb": {
    "r": 72,
    "g": 66,
    "b": 226
  },
  "hsl": {
    "h": 242.25,
    "s": 73.394,
    "l": 57.255
  },
  "oklch": {
    "l": 0.4974,
    "c": 0.23212,
    "h": 275.5
  },
  "luminance": 0.10765
}

Semantic roles & 50–950 ramp

primary
#4842E2
secondary
#DEE09F
accent
#F038E9
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #4842E2

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

Preview Lab → · Contrast checker → · Palette generator →

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