#4940D5#4940D5

#4940D5 is a mid, highly saturated blue. Relative luminance 0.099; OKLCH L 48.3% C 0.218 H 277.1°. Best body text is #FFFFFF at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#4940D5
RGBrgb(73, 64, 213)
HSLhsl(244, 64%, 54%)
HSVhsv(244, 70%, 84%)
CMYKcmyk(65.7%, 70%, 0%, 16.5%)
CIE-LABlab(37.64, 48.22, -75.03)
CIE-LCHlch(37.64, 89.19, 302.73°)
OKLaboklab(48.29% 0.0269 -0.2167)
OKLCHoklch(48.29% 0.218 277.1)
XYZxyz(16.5874, 9.8859, 63.9719)
Luminance0.0989 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4940D5 #CCD540
analogous
#4082D5 #4940D5 #9440D5
triadic
#4940D5 #D54940 #40D549
tetradic
#4940D5 #D54082 #CCD540 #40D594
square
#4940D5 #D54082 #CCD540 #40D594
split-complementary
#4940D5 #D59440 #82D540
monochromatic
#221C7F #2F27B1 #4940D5 #7972E0 #A9A4EB

Accessibility & contrast

On white

7.05
#4940D5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#4940D5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4940D5
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4940D5#FFFFFF#000000##FFFFFF
##4940D51.007.052.987.05
#FFFFFF7.051.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD9
Deuteranopia (green-blind)
#0052D2
Tritanopia (blue-blind)
#006986
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #4940d5;
/* rgb */ color: rgb(73, 64, 213);
/* oklch */ color: oklch(48.3% 0.218 277.1);
Tailwind
colors: {
  custom: {
    50: '#8d76e3',
    500: '#4940d5',
    950: '#000000',
  },
}
SCSS
$custom: #4940d5;
$custom-light: #8d76e3;
$custom-dark: #000000;
JSON
{
  "hex": "#4940d5",
  "rgb": {
    "r": 73,
    "g": 64,
    "b": 213
  },
  "hsl": {
    "h": 243.624,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.4829,
    "c": 0.21832,
    "h": 277.1
  },
  "luminance": 0.09887
}

Semantic roles & 50–950 ramp

primary
#4940D5
secondary
#D4D899
accent
#E741DD
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #4940D5

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

Preview Lab → · Contrast checker → · Palette generator →

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