#4840E2#4840E2

#4840E2 is a mid, highly saturated blue. Relative luminance 0.105; OKLCH L 49.5% C 0.234 H 275.8°. Best body text is #FFFFFF at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#4840E2
RGBrgb(72, 64, 226)
HSLhsl(243, 74%, 57%)
HSVhsv(243, 72%, 89%)
CMYKcmyk(68.1%, 71.7%, 0%, 11.4%)
CIE-LABlab(38.78, 52.21, -80.60)
CIE-LCHlch(38.78, 96.03, 302.93°)
OKLaboklab(49.46% 0.0235 -0.2329)
OKLCHoklch(49.46% 0.234 275.8)
XYZxyz(18.2288, 10.5338, 73.0093)
Luminance0.1053 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4840E2 #DAE240
analogous
#4089E2 #4840E2 #9940E2
triadic
#4840E2 #E24840 #40E248
tetradic
#4840E2 #E24089 #DAE240 #40E299
square
#4840E2 #E24089 #DAE240 #40E299
split-complementary
#4840E2 #E29940 #89E240
monochromatic
#1C1692 #261EC7 #4840E2 #7B75EA #AEAAF2

Accessibility & contrast

On white

6.76
#4840E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#4840E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4840E2
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4840E2#FFFFFF#000000##FFFFFF
##4840E21.006.763.116.76
#FFFFFF6.761.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062E7
Deuteranopia (green-blind)
#0054DF
Tritanopia (blue-blind)
#006E8D
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #4840e2;
/* rgb */ color: rgb(72, 64, 226);
/* oklch */ color: oklch(49.5% 0.234 275.8);
Tailwind
colors: {
  custom: {
    50: '#8f77ec',
    500: '#4840e2',
    950: '#000000',
  },
}
SCSS
$custom: #4840e2;
$custom-light: #8f77ec;
$custom-dark: #000000;
JSON
{
  "hex": "#4840e2",
  "rgb": {
    "r": 72,
    "g": 64,
    "b": 226
  },
  "hsl": {
    "h": 242.963,
    "s": 73.636,
    "l": 56.863
  },
  "oklch": {
    "l": 0.49458,
    "c": 0.23412,
    "h": 275.8
  },
  "luminance": 0.10535
}

Semantic roles & 50–950 ramp

primary
#4840E2
secondary
#DDE09E
accent
#F038E7
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #4840E2

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

Preview Lab → · Contrast checker → · Palette generator →

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