#4840CE#4840CE

#4840CE is a mid, highly saturated blue. Relative luminance 0.095; OKLCH L 47.6% C 0.210 H 277.3°. Best body text is #FFFFFF at 7.24:1 contrast (WCAG AA passes).

Color values

HEX#4840CE
RGBrgb(72, 64, 206)
HSLhsl(243, 59%, 53%)
HSVhsv(243, 69%, 81%)
CMYKcmyk(65%, 68.9%, 0%, 19.2%)
CIE-LABlab(36.93, 45.87, -72.15)
CIE-LCHlch(36.93, 85.50, 302.44°)
OKLaboklab(47.57% 0.0267 -0.2083)
OKLCHoklch(47.57% 0.21 277.3)
XYZxyz(15.6428, 9.4994, 59.3898)
Luminance0.0950 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4840CE #C6CE40
analogous
#407FCE #4840CE #8F40CE
triadic
#4840CE #CE4840 #40CE48
tetradic
#4840CE #CE407F #C6CE40 #40CE8F
square
#4840CE #CE407F #C6CE40 #40CE8F
split-complementary
#4840CE #CE8F40 #7FCE40
monochromatic
#231E75 #322BA6 #4840CE #7771DA #A5A1E7

Accessibility & contrast

On white

7.24
#4840CE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#4840CE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4840CE
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4840CE#FFFFFF#000000##FFFFFF
##4840CE1.007.242.907.24
#FFFFFF7.241.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DD2
Deuteranopia (green-blind)
#0051CB
Tritanopia (blue-blind)
#006682
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #4840ce;
/* rgb */ color: rgb(72, 64, 206);
/* oklch */ color: oklch(47.6% 0.210 277.3);
Tailwind
colors: {
  custom: {
    50: '#8b76de',
    500: '#4840ce',
    950: '#000000',
  },
}
SCSS
$custom: #4840ce;
$custom-light: #8b76de;
$custom-dark: #000000;
JSON
{
  "hex": "#4840ce",
  "rgb": {
    "r": 72,
    "g": 64,
    "b": 206
  },
  "hsl": {
    "h": 243.38,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.4757,
    "c": 0.20998,
    "h": 277.3
  },
  "luminance": 0.09501
}

Semantic roles & 50–950 ramp

primary
#4840CE
secondary
#D0D496
accent
#E245DA
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4840CE

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

Preview Lab → · Contrast checker → · Palette generator →

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