#4840D7#4840D7

#4840D7 is a mid, highly saturated blue. Relative luminance 0.100; OKLCH L 48.4% C 0.221 H 276.6°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#4840D7
RGBrgb(72, 64, 215)
HSLhsl(243, 65%, 55%)
HSVhsv(243, 70%, 84%)
CMYKcmyk(66.5%, 70.2%, 0%, 15.7%)
CIE-LABlab(37.75, 48.74, -76.00)
CIE-LCHlch(37.75, 90.28, 302.67°)
OKLaboklab(48.41% 0.0253 -0.2195)
OKLCHoklch(48.41% 0.221 276.6)
XYZxyz(16.7676, 9.9493, 65.3136)
Luminance0.0995 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4840D7 #CFD740
analogous
#4083D7 #4840D7 #9440D7
triadic
#4840D7 #D74840 #40D748
tetradic
#4840D7 #D74083 #CFD740 #40D794
square
#4840D7 #D74083 #CFD740 #40D794
split-complementary
#4840D7 #D79440 #83D740
monochromatic
#211B81 #2D26B4 #4840D7 #7873E2 #A9A5EC

Accessibility & contrast

On white

7.02
#4840D7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#4840D7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4840D7
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4840D7#FFFFFF#000000##FFFFFF
##4840D71.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FDC
Deuteranopia (green-blind)
#0052D4
Tritanopia (blue-blind)
#006A87
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #4840d7;
/* rgb */ color: rgb(72, 64, 215);
/* oklch */ color: oklch(48.4% 0.221 276.6);
Tailwind
colors: {
  custom: {
    50: '#8d76e5',
    500: '#4840d7',
    950: '#000000',
  },
}
SCSS
$custom: #4840d7;
$custom-light: #8d76e5;
$custom-dark: #000000;
JSON
{
  "hex": "#4840d7",
  "rgb": {
    "r": 72,
    "g": 64,
    "b": 215
  },
  "hsl": {
    "h": 243.179,
    "s": 65.368,
    "l": 54.706
  },
  "oklch": {
    "l": 0.4841,
    "c": 0.22096,
    "h": 276.6
  },
  "luminance": 0.09951
}

Semantic roles & 50–950 ramp

primary
#4840D7
secondary
#D6D99A
accent
#E83FDF
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #4840D7

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

Preview Lab → · Contrast checker → · Palette generator →

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