#4940D7#4940D7

#4940D7 is a mid, highly saturated blue. Relative luminance 0.100; OKLCH L 48.5% C 0.221 H 276.9°. Best body text is #FFFFFF at 7.00:1 contrast (WCAG AA passes).

Color values

HEX#4940D7
RGBrgb(73, 64, 215)
HSLhsl(244, 65%, 55%)
HSVhsv(244, 70%, 84%)
CMYKcmyk(66%, 70.2%, 0%, 15.7%)
CIE-LABlab(37.82, 48.85, -75.88)
CIE-LCHlch(37.82, 90.25, 302.77°)
OKLaboklab(48.48% 0.0266 -0.2191)
OKLCHoklch(48.48% 0.221 276.9)
XYZxyz(16.8428, 9.9881, 65.3171)
Luminance0.0999 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4940D7 #CED740
analogous
#4083D7 #4940D7 #9440D7
triadic
#4940D7 #D74940 #40D749
tetradic
#4940D7 #D74083 #CED740 #40D794
square
#4940D7 #D74083 #CED740 #40D794
split-complementary
#4940D7 #D79440 #83D740
monochromatic
#211B81 #2E26B4 #4940D7 #7973E2 #A9A5EC

Accessibility & contrast

On white

7.00
#4940D7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#4940D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4940D7
7.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4940D7#FFFFFF#000000##FFFFFF
##4940D71.007.003.007.00
#FFFFFF7.001.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FDC
Deuteranopia (green-blind)
#0052D4
Tritanopia (blue-blind)
#006A87
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #4940d7;
/* rgb */ color: rgb(73, 64, 215);
/* oklch */ color: oklch(48.5% 0.221 276.9);
Tailwind
colors: {
  custom: {
    50: '#8d76e5',
    500: '#4940d7',
    950: '#000000',
  },
}
SCSS
$custom: #4940d7;
$custom-light: #8d76e5;
$custom-dark: #000000;
JSON
{
  "hex": "#4940d7",
  "rgb": {
    "r": 73,
    "g": 64,
    "b": 215
  },
  "hsl": {
    "h": 243.576,
    "s": 65.368,
    "l": 54.706
  },
  "oklch": {
    "l": 0.48478,
    "c": 0.22074,
    "h": 276.9
  },
  "luminance": 0.0999
}

Semantic roles & 50–950 ramp

primary
#4940D7
secondary
#D5D99A
accent
#E83FDE
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #4940D7

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

Preview Lab → · Contrast checker → · Palette generator →

#4940D7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva