#4940BA#4940BA

#4940BA is a mid, vivid blue. Relative luminance 0.086; OKLCH L 45.8% C 0.185 H 279.5°. Best body text is #FFFFFF at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#4940BA
RGBrgb(73, 64, 186)
HSLhsl(244, 49%, 49%)
HSVhsv(244, 66%, 73%)
CMYKcmyk(60.8%, 65.6%, 0%, 27.1%)
CIE-LABlab(35.26, 39.56, -63.21)
CIE-LCHlch(35.26, 74.57, 302.04°)
OKLaboklab(45.85% 0.0306 -0.182)
OKLCHoklch(45.85% 0.185 279.5)
XYZxyz(13.4412, 8.6274, 47.4018)
Luminance0.0863 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4940BA #B1BA40
analogous
#4074BA #4940BA #8640BA
triadic
#4940BA #BA4940 #40BA49
tetradic
#4940BA #BA4074 #B1BA40 #40BA86
square
#4940BA #BA4074 #B1BA40 #40BA86
split-complementary
#4940BA #BA8640 #74BA40
monochromatic
#25215F #37308C #4940BA #726BCC #9E99DC

Accessibility & contrast

On white

7.70
#4940BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#4940BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4940BA
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4940BA#FFFFFF#000000##FFFFFF
##4940BA1.007.702.737.70
#FFFFFF7.701.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BE
Deuteranopia (green-blind)
#004EB8
Tritanopia (blue-blind)
#005F77
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #4940ba;
/* rgb */ color: rgb(73, 64, 186);
/* oklch */ color: oklch(45.8% 0.185 279.5);
Tailwind
colors: {
  custom: {
    50: '#8876d0',
    500: '#4940ba',
    950: '#000000',
  },
}
SCSS
$custom: #4940ba;
$custom-light: #8876d0;
$custom-dark: #000000;
JSON
{
  "hex": "#4940ba",
  "rgb": {
    "r": 73,
    "g": 64,
    "b": 186
  },
  "hsl": {
    "h": 244.426,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.45846,
    "c": 0.18458,
    "h": 279.5
  },
  "luminance": 0.08628
}

Semantic roles & 50–950 ramp

primary
#4940BA
secondary
#C3C88E
accent
#D84FCE
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0D0814
muted
#7D7B82

Preview Lab

Preview with #4940BA

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

Preview Lab → · Contrast checker → · Palette generator →

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