#4842E5#4842E5

#4842E5 is a mid, highly saturated blue. Relative luminance 0.109; OKLCH L 50.0% C 0.236 H 275.3°. Best body text is #FFFFFF at 6.59:1 contrast (WCAG AA passes).

Color values

HEX#4842E5
RGBrgb(72, 66, 229)
HSLhsl(242, 76%, 58%)
HSVhsv(242, 71%, 90%)
CMYKcmyk(68.6%, 71.2%, 0%, 10.2%)
CIE-LABlab(39.46, 52.05, -81.19)
CIE-LCHlch(39.46, 96.44, 302.67°)
OKLaboklab(50.03% 0.0218 -0.2347)
OKLCHoklch(50.03% 0.236 275.3)
XYZxyz(18.7589, 10.9295, 75.2346)
Luminance0.1093 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4842E5 #DFE542
analogous
#428DE5 #4842E5 #9A42E5
triadic
#4842E5 #E54842 #42E548
tetradic
#4842E5 #E5428D #DFE542 #42E59A
square
#4842E5 #E5428D #DFE542 #42E59A
split-complementary
#4842E5 #E59A42 #8DE542
monochromatic
#1A1598 #231CCE #4842E5 #7C78EC #B0AEF4

Accessibility & contrast

On white

6.59
#4842E5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#4842E5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4842E5
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4842E5#FFFFFF#000000##FFFFFF
##4842E51.006.593.196.59
#FFFFFF6.591.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064EA
Deuteranopia (green-blind)
#0055E2
Tritanopia (blue-blind)
#00708F
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #4842e5;
/* rgb */ color: rgb(72, 66, 229);
/* oklch */ color: oklch(50.0% 0.236 275.3);
Tailwind
colors: {
  custom: {
    50: '#9078ef',
    500: '#4842e5',
    950: '#000000',
  },
}
SCSS
$custom: #4842e5;
$custom-light: #9078ef;
$custom-dark: #000000;
JSON
{
  "hex": "#4842e5",
  "rgb": {
    "r": 72,
    "g": 66,
    "b": 229
  },
  "hsl": {
    "h": 242.209,
    "s": 75.814,
    "l": 57.843
  },
  "oklch": {
    "l": 0.50027,
    "c": 0.23568,
    "h": 275.3
  },
  "luminance": 0.10931
}

Semantic roles & 50–950 ramp

primary
#4842E5
secondary
#E0E2A1
accent
#F235EB
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0917
muted
#7E7B85

Preview Lab

Preview with #4842E5

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

Preview Lab → · Contrast checker → · Palette generator →

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