#4940E3#4940E3

#4940E3 is a mid, highly saturated blue. Relative luminance 0.106; OKLCH L 49.6% C 0.235 H 276.0°. Best body text is #FFFFFF at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#4940E3
RGBrgb(73, 64, 227)
HSLhsl(243, 74%, 57%)
HSVhsv(243, 72%, 89%)
CMYKcmyk(67.8%, 71.8%, 0%, 11%)
CIE-LABlab(38.95, 52.62, -80.90)
CIE-LCHlch(38.95, 96.51, 303.04°)
OKLaboklab(49.62% 0.0245 -0.2338)
OKLCHoklch(49.62% 0.235 276)
XYZxyz(18.4416, 10.6276, 73.7376)
Luminance0.1063 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4940E3 #DAE340
analogous
#4089E3 #4940E3 #9B40E3
triadic
#4940E3 #E34940 #40E349
tetradic
#4940E3 #E34089 #DAE340 #40E39B
square
#4940E3 #E34089 #DAE340 #40E39B
split-complementary
#4940E3 #E39B40 #89E340
monochromatic
#1C1693 #271DC8 #4940E3 #7C75EB #AFABF3

Accessibility & contrast

On white

6.72
#4940E3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#4940E3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4940E3
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4940E3#FFFFFF#000000##FFFFFF
##4940E31.006.723.136.72
#FFFFFF6.721.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063E8
Deuteranopia (green-blind)
#0054E0
Tritanopia (blue-blind)
#006E8E
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #4940e3;
/* rgb */ color: rgb(73, 64, 227);
/* oklch */ color: oklch(49.6% 0.235 276.0);
Tailwind
colors: {
  custom: {
    50: '#9077ed',
    500: '#4940e3',
    950: '#000000',
  },
}
SCSS
$custom: #4940e3;
$custom-light: #9077ed;
$custom-dark: #000000;
JSON
{
  "hex": "#4940e3",
  "rgb": {
    "r": 73,
    "g": 64,
    "b": 227
  },
  "hsl": {
    "h": 243.313,
    "s": 74.429,
    "l": 57.059
  },
  "oklch": {
    "l": 0.4962,
    "c": 0.23507,
    "h": 276
  },
  "luminance": 0.10629
}

Semantic roles & 50–950 ramp

primary
#4940E3
secondary
#DDE19E
accent
#F137E7
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #4940E3

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

Preview Lab → · Contrast checker → · Palette generator →

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