#4840D9#4840D9

#4840D9 is a mid, highly saturated blue. Relative luminance 0.101; OKLCH L 48.6% C 0.223 H 276.4°. Best body text is #FFFFFF at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#4840D9
RGBrgb(72, 64, 217)
HSLhsl(243, 67%, 55%)
HSVhsv(243, 71%, 85%)
CMYKcmyk(66.8%, 70.5%, 0%, 14.9%)
CIE-LABlab(37.94, 49.37, -76.84)
CIE-LCHlch(37.94, 91.34, 302.72°)
OKLaboklab(48.6% 0.025 -0.222)
OKLCHoklch(48.6% 0.223 276.4)
XYZxyz(17.0262, 10.0528, 66.6753)
Luminance0.1005 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4840D9 #D1D940
analogous
#4085D9 #4840D9 #9440D9
triadic
#4840D9 #D94840 #40D948
tetradic
#4840D9 #D94085 #D1D940 #40D994
square
#4840D9 #D94085 #D1D940 #40D994
split-complementary
#4840D9 #D99440 #85D940
monochromatic
#201A84 #2C24B7 #4840D9 #7973E3 #AAA6ED

Accessibility & contrast

On white

6.97
#4840D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#4840D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4840D9
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4840D9#FFFFFF#000000##FFFFFF
##4840D91.006.973.016.97
#FFFFFF6.971.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060DE
Deuteranopia (green-blind)
#0053D6
Tritanopia (blue-blind)
#006A88
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #4840d9;
/* rgb */ color: rgb(72, 64, 217);
/* oklch */ color: oklch(48.6% 0.223 276.4);
Tailwind
colors: {
  custom: {
    50: '#8d76e6',
    500: '#4840d9',
    950: '#000000',
  },
}
SCSS
$custom: #4840d9;
$custom-light: #8d76e6;
$custom-dark: #000000;
JSON
{
  "hex": "#4840d9",
  "rgb": {
    "r": 72,
    "g": 64,
    "b": 217
  },
  "hsl": {
    "h": 243.137,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.48599,
    "c": 0.22337,
    "h": 276.4
  },
  "luminance": 0.10054
}

Semantic roles & 50–950 ramp

primary
#4840D9
secondary
#D7DA9A
accent
#EA3EE1
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #4840D9

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

Preview Lab → · Contrast checker → · Palette generator →

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