#4840DF#4840DF

#4840DF is a mid, highly saturated blue. Relative luminance 0.104; OKLCH L 49.2% C 0.231 H 276.0°. Best body text is #FFFFFF at 6.83:1 contrast (WCAG AA passes).

Color values

HEX#4840DF
RGBrgb(72, 64, 223)
HSLhsl(243, 71%, 56%)
HSVhsv(243, 71%, 87%)
CMYKcmyk(67.7%, 71.3%, 0%, 12.5%)
CIE-LABlab(38.50, 51.26, -79.35)
CIE-LCHlch(38.50, 94.47, 302.86°)
OKLaboklab(49.17% 0.024 -0.2293)
OKLCHoklch(49.17% 0.231 276)
XYZxyz(17.8208, 10.3706, 70.8603)
Luminance0.1037 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4840DF #D7DF40
analogous
#4088DF #4840DF #9840DF
triadic
#4840DF #DF4840 #40DF48
tetradic
#4840DF #DF4088 #D7DF40 #40DF98
square
#4840DF #DF4088 #D7DF40 #40DF98
split-complementary
#4840DF #DF9840 #88DF40
monochromatic
#1E188D #2920C1 #4840DF #7A74E8 #ACA9F1

Accessibility & contrast

On white

6.83
#4840DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#4840DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4840DF
6.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4840DF#FFFFFF#000000##FFFFFF
##4840DF1.006.833.076.83
#FFFFFF6.831.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062E4
Deuteranopia (green-blind)
#0054DC
Tritanopia (blue-blind)
#006D8B
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #4840df;
/* rgb */ color: rgb(72, 64, 223);
/* oklch */ color: oklch(49.2% 0.231 276.0);
Tailwind
colors: {
  custom: {
    50: '#8e77ea',
    500: '#4840df',
    950: '#000000',
  },
}
SCSS
$custom: #4840df;
$custom-light: #8e77ea;
$custom-dark: #000000;
JSON
{
  "hex": "#4840df",
  "rgb": {
    "r": 72,
    "g": 64,
    "b": 223
  },
  "hsl": {
    "h": 243.019,
    "s": 71.3,
    "l": 56.275
  },
  "oklch": {
    "l": 0.4917,
    "c": 0.23056,
    "h": 276
  },
  "luminance": 0.10372
}

Semantic roles & 50–950 ramp

primary
#4840DF
secondary
#DBDE9D
accent
#EE3AE5
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #4840DF

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

Preview Lab → · Contrast checker → · Palette generator →

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