#4840D4#4840D4

#4840D4 is a mid, highly saturated blue. Relative luminance 0.098; OKLCH L 48.1% C 0.217 H 276.8°. Best body text is #FFFFFF at 7.10:1 contrast (WCAG AA passes).

Color values

HEX#4840D4
RGBrgb(72, 64, 212)
HSLhsl(243, 63%, 54%)
HSVhsv(243, 70%, 83%)
CMYKcmyk(66%, 69.8%, 0%, 16.9%)
CIE-LABlab(37.47, 47.78, -74.72)
CIE-LCHlch(37.47, 88.70, 302.60°)
OKLaboklab(48.13% 0.0258 -0.2158)
OKLCHoklch(48.13% 0.217 276.8)
XYZxyz(16.3857, 9.7966, 63.3020)
Luminance0.0980 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4840D4 #CCD440
analogous
#4082D4 #4840D4 #9240D4
triadic
#4840D4 #D44840 #40D448
tetradic
#4840D4 #D44082 #CCD440 #40D492
square
#4840D4 #D44082 #CCD440 #40D492
split-complementary
#4840D4 #D49240 #82D440
monochromatic
#211C7D #2F27AF #4840D4 #7872DF #A8A4EA

Accessibility & contrast

On white

7.10
#4840D4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#4840D4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4840D4
7.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4840D4#FFFFFF#000000##FFFFFF
##4840D41.007.102.967.10
#FFFFFF7.101.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED8
Deuteranopia (green-blind)
#0052D1
Tritanopia (blue-blind)
#006885
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #4840d4;
/* rgb */ color: rgb(72, 64, 212);
/* oklch */ color: oklch(48.1% 0.217 276.8);
Tailwind
colors: {
  custom: {
    50: '#8c76e2',
    500: '#4840d4',
    950: '#000000',
  },
}
SCSS
$custom: #4840d4;
$custom-light: #8c76e2;
$custom-dark: #000000;
JSON
{
  "hex": "#4840d4",
  "rgb": {
    "r": 72,
    "g": 64,
    "b": 212
  },
  "hsl": {
    "h": 243.243,
    "s": 63.248,
    "l": 54.118
  },
  "oklch": {
    "l": 0.48128,
    "c": 0.21733,
    "h": 276.8
  },
  "luminance": 0.09798
}

Semantic roles & 50–950 ramp

primary
#4840D4
secondary
#D4D798
accent
#E642DD
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #4840D4

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

Preview Lab → · Contrast checker → · Palette generator →

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