#4840D8#4840D8

#4840D8 is a mid, highly saturated blue. Relative luminance 0.100; OKLCH L 48.5% C 0.222 H 276.5°. Best body text is #FFFFFF at 7.00:1 contrast (WCAG AA passes).

Color values

HEX#4840D8
RGBrgb(72, 64, 216)
HSLhsl(243, 66%, 55%)
HSVhsv(243, 70%, 85%)
CMYKcmyk(66.7%, 70.4%, 0%, 15.3%)
CIE-LABlab(37.84, 49.05, -76.42)
CIE-LCHlch(37.84, 90.81, 302.70°)
OKLaboklab(48.5% 0.0252 -0.2207)
OKLCHoklch(48.5% 0.222 276.5)
XYZxyz(16.8965, 10.0009, 65.9924)
Luminance0.1000 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4840D8 #D0D840
analogous
#4084D8 #4840D8 #9440D8
triadic
#4840D8 #D84840 #40D848
tetradic
#4840D8 #D84084 #D0D840 #40D894
square
#4840D8 #D84084 #D0D840 #40D894
split-complementary
#4840D8 #D89440 #84D840
monochromatic
#201B83 #2D25B6 #4840D8 #7973E2 #A9A6ED

Accessibility & contrast

On white

7.00
#4840D8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#4840D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4840D8
7.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4840D8#FFFFFF#000000##FFFFFF
##4840D81.007.003.007.00
#FFFFFF7.001.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060DD
Deuteranopia (green-blind)
#0052D5
Tritanopia (blue-blind)
#006A88
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #4840d8;
/* rgb */ color: rgb(72, 64, 216);
/* oklch */ color: oklch(48.5% 0.222 276.5);
Tailwind
colors: {
  custom: {
    50: '#8d76e5',
    500: '#4840d8',
    950: '#000000',
  },
}
SCSS
$custom: #4840d8;
$custom-light: #8d76e5;
$custom-dark: #000000;
JSON
{
  "hex": "#4840d8",
  "rgb": {
    "r": 72,
    "g": 64,
    "b": 216
  },
  "hsl": {
    "h": 243.158,
    "s": 66.087,
    "l": 54.902
  },
  "oklch": {
    "l": 0.48504,
    "c": 0.22217,
    "h": 276.5
  },
  "luminance": 0.10002
}

Semantic roles & 50–950 ramp

primary
#4840D8
secondary
#D7DA9A
accent
#E93FE0
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #4840D8

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

Preview Lab → · Contrast checker → · Palette generator →

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