#4840D2#4840D2

#4840D2 is a mid, highly saturated blue. Relative luminance 0.097; OKLCH L 47.9% C 0.215 H 277.0°. Best body text is #FFFFFF at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#4840D2
RGBrgb(72, 64, 210)
HSLhsl(243, 62%, 54%)
HSVhsv(243, 70%, 82%)
CMYKcmyk(65.7%, 69.5%, 0%, 17.6%)
CIE-LABlab(37.29, 47.15, -73.87)
CIE-LCHlch(37.29, 87.63, 302.55°)
OKLaboklab(47.94% 0.0261 -0.2133)
OKLCHoklch(47.94% 0.215 277)
XYZxyz(16.1350, 9.6963, 61.9815)
Luminance0.0970 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4840D2 #CAD240
analogous
#4081D2 #4840D2 #9140D2
triadic
#4840D2 #D24840 #40D248
tetradic
#4840D2 #D24081 #CAD240 #40D291
square
#4840D2 #D24081 #CAD240 #40D291
split-complementary
#4840D2 #D29140 #81D240
monochromatic
#221D7B #3029AC #4840D2 #7772DE #A7A3E9

Accessibility & contrast

On white

7.14
#4840D2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#4840D2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4840D2
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4840D2#FFFFFF#000000##FFFFFF
##4840D21.007.142.947.14
#FFFFFF7.141.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED6
Deuteranopia (green-blind)
#0051CF
Tritanopia (blue-blind)
#006884
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #4840d2;
/* rgb */ color: rgb(72, 64, 210);
/* oklch */ color: oklch(47.9% 0.215 277.0);
Tailwind
colors: {
  custom: {
    50: '#8c76e1',
    500: '#4840d2',
    950: '#000000',
  },
}
SCSS
$custom: #4840d2;
$custom-light: #8c76e1;
$custom-dark: #000000;
JSON
{
  "hex": "#4840d2",
  "rgb": {
    "r": 72,
    "g": 64,
    "b": 210
  },
  "hsl": {
    "h": 243.288,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.47941,
    "c": 0.21488,
    "h": 277
  },
  "luminance": 0.09698
}

Semantic roles & 50–950 ramp

primary
#4840D2
secondary
#D3D698
accent
#E543DC
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0E0915
muted
#7E7B84

Preview Lab

Preview with #4840D2

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

Preview Lab → · Contrast checker → · Palette generator →

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