#4940A7#4940A7

#4940A7 is a dark, vivid blue. Relative luminance 0.079; OKLCH L 44.2% C 0.160 H 281.6°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#4940A7
RGBrgb(73, 64, 167)
HSLhsl(245, 45%, 45%)
HSVhsv(245, 62%, 65%)
CMYKcmyk(56.3%, 61.7%, 0%, 34.5%)
CIE-LABlab(33.72, 33.39, -54.43)
CIE-LCHlch(33.72, 63.85, 301.53°)
OKLaboklab(44.24% 0.0321 -0.1562)
OKLCHoklch(44.24% 0.16 281.6)
XYZxyz(11.5539, 7.8726, 37.4625)
Luminance0.0787 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4940A7 #9EA740
analogous
#406AA7 #4940A7 #7D40A7
triadic
#4940A7 #A74940 #40A749
tetradic
#4940A7 #A7406A #9EA740 #40A77D
square
#4940A7 #A7406A #9EA740 #40A77D
split-complementary
#4940A7 #A77D40 #6AA740
monochromatic
#221E4F #362F7B #4940A7 #6A62C3 #948ED4

Accessibility & contrast

On white

8.16
#4940A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#4940A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4940A7
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4940A7#FFFFFF#000000##FFFFFF
##4940A71.008.162.578.16
#FFFFFF8.161.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AA
Deuteranopia (green-blind)
#004CA5
Tritanopia (blue-blind)
#1A596D
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #4940a7;
/* rgb */ color: rgb(73, 64, 167);
/* oklch */ color: oklch(44.2% 0.160 281.6);
Tailwind
colors: {
  custom: {
    50: '#8575c2',
    500: '#4940a7',
    950: '#000000',
  },
}
SCSS
$custom: #4940a7;
$custom-light: #8575c2;
$custom-dark: #000000;
JSON
{
  "hex": "#4940a7",
  "rgb": {
    "r": 73,
    "g": 64,
    "b": 167
  },
  "hsl": {
    "h": 245.243,
    "s": 44.589,
    "l": 45.294
  },
  "oklch": {
    "l": 0.44241,
    "c": 0.15951,
    "h": 281.6
  },
  "luminance": 0.07873
}

Semantic roles & 50–950 ramp

primary
#4940A7
secondary
#BABF84
accent
#D454C9
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0812
muted
#7D7B81

Preview Lab

Preview with #4940A7

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

Preview Lab → · Contrast checker → · Palette generator →

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