#4840D6#4840D6

#4840D6 is a mid, highly saturated blue. Relative luminance 0.099; OKLCH L 48.3% C 0.220 H 276.7°. Best body text is #FFFFFF at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#4840D6
RGBrgb(72, 64, 214)
HSLhsl(243, 65%, 55%)
HSVhsv(243, 70%, 84%)
CMYKcmyk(66.4%, 70.1%, 0%, 16.1%)
CIE-LABlab(37.66, 48.42, -75.57)
CIE-LCHlch(37.66, 89.75, 302.65°)
OKLaboklab(48.32% 0.0255 -0.2183)
OKLCHoklch(48.32% 0.22 276.7)
XYZxyz(16.6395, 9.8981, 64.6389)
Luminance0.0990 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4840D6 #CED640
analogous
#4083D6 #4840D6 #9340D6
triadic
#4840D6 #D64840 #40D648
tetradic
#4840D6 #D64083 #CED640 #40D693
square
#4840D6 #D64083 #CED640 #40D693
split-complementary
#4840D6 #D69340 #83D640
monochromatic
#211B80 #2E26B2 #4840D6 #7872E1 #A9A5EC

Accessibility & contrast

On white

7.05
#4840D6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#4840D6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4840D6
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4840D6#FFFFFF#000000##FFFFFF
##4840D61.007.052.987.05
#FFFFFF7.051.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FDA
Deuteranopia (green-blind)
#0052D3
Tritanopia (blue-blind)
#006986
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #4840d6;
/* rgb */ color: rgb(72, 64, 214);
/* oklch */ color: oklch(48.3% 0.220 276.7);
Tailwind
colors: {
  custom: {
    50: '#8d76e4',
    500: '#4840d6',
    950: '#000000',
  },
}
SCSS
$custom: #4840d6;
$custom-light: #8d76e4;
$custom-dark: #000000;
JSON
{
  "hex": "#4840d6",
  "rgb": {
    "r": 72,
    "g": 64,
    "b": 214
  },
  "hsl": {
    "h": 243.2,
    "s": 64.655,
    "l": 54.51
  },
  "oklch": {
    "l": 0.48316,
    "c": 0.21975,
    "h": 276.7
  },
  "luminance": 0.099
}

Semantic roles & 50–950 ramp

primary
#4840D6
secondary
#D5D999
accent
#E840DF
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #4840D6

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

Preview Lab → · Contrast checker → · Palette generator →

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