#4840D5#4840D5

#4840D5 is a mid, highly saturated blue. Relative luminance 0.098; OKLCH L 48.2% C 0.219 H 276.7°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#4840D5
RGBrgb(72, 64, 213)
HSLhsl(243, 64%, 54%)
HSVhsv(243, 70%, 84%)
CMYKcmyk(66.2%, 70%, 0%, 16.5%)
CIE-LABlab(37.57, 48.10, -75.15)
CIE-LCHlch(37.57, 89.23, 302.62°)
OKLaboklab(48.22% 0.0256 -0.217)
OKLCHoklch(48.22% 0.219 276.7)
XYZxyz(16.5122, 9.8472, 63.9684)
Luminance0.0985 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4840D5 #CDD540
analogous
#4083D5 #4840D5 #9240D5
triadic
#4840D5 #D54840 #40D548
tetradic
#4840D5 #D54083 #CDD540 #40D592
square
#4840D5 #D54083 #CDD540 #40D592
split-complementary
#4840D5 #D59240 #83D540
monochromatic
#211C7F #2E27B1 #4840D5 #7872E0 #A8A4EB

Accessibility & contrast

On white

7.07
#4840D5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#4840D5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4840D5
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4840D5#FFFFFF#000000##FFFFFF
##4840D51.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD9
Deuteranopia (green-blind)
#0052D2
Tritanopia (blue-blind)
#006986
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #4840d5;
/* rgb */ color: rgb(72, 64, 213);
/* oklch */ color: oklch(48.2% 0.219 276.7);
Tailwind
colors: {
  custom: {
    50: '#8d76e3',
    500: '#4840d5',
    950: '#000000',
  },
}
SCSS
$custom: #4840d5;
$custom-light: #8d76e3;
$custom-dark: #000000;
JSON
{
  "hex": "#4840d5",
  "rgb": {
    "r": 72,
    "g": 64,
    "b": 213
  },
  "hsl": {
    "h": 243.221,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.48222,
    "c": 0.21854,
    "h": 276.7
  },
  "luminance": 0.09849
}

Semantic roles & 50–950 ramp

primary
#4840D5
secondary
#D5D899
accent
#E741DE
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #4840D5

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

Preview Lab → · Contrast checker → · Palette generator →

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