#4940AC#4940AC

#4940AC is a dark, vivid blue. Relative luminance 0.081; OKLCH L 44.7% C 0.166 H 281.0°. Best body text is #FFFFFF at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#4940AC
RGBrgb(73, 64, 172)
HSLhsl(245, 46%, 46%)
HSVhsv(245, 63%, 67%)
CMYKcmyk(57.6%, 62.8%, 0%, 32.5%)
CIE-LABlab(34.11, 35.02, -56.78)
CIE-LCHlch(34.11, 66.71, 301.66°)
OKLaboklab(44.65% 0.0318 -0.1631)
OKLCHoklch(44.65% 0.166 281)
XYZxyz(12.0251, 8.0610, 39.9440)
Luminance0.0806 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4940AC #A3AC40
analogous
#406DAC #4940AC #7F40AC
triadic
#4940AC #AC4940 #40AC49
tetradic
#4940AC #AC406D #A3AC40 #40AC7F
square
#4940AC #AC406D #A3AC40 #40AC7F
split-complementary
#4940AC #AC7F40 #6DAC40
monochromatic
#231F53 #362F7F #4940AC #6C64C5 #9691D6

Accessibility & contrast

On white

8.04
#4940AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#4940AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4940AC
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4940AC#FFFFFF#000000##FFFFFF
##4940AC1.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054AF
Deuteranopia (green-blind)
#004CAA
Tritanopia (blue-blind)
#125A70
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #4940ac;
/* rgb */ color: rgb(73, 64, 172);
/* oklch */ color: oklch(44.7% 0.166 281.0);
Tailwind
colors: {
  custom: {
    50: '#8575c6',
    500: '#4940ac',
    950: '#000000',
  },
}
SCSS
$custom: #4940ac;
$custom-light: #8575c6;
$custom-dark: #000000;
JSON
{
  "hex": "#4940ac",
  "rgb": {
    "r": 73,
    "g": 64,
    "b": 172
  },
  "hsl": {
    "h": 245,
    "s": 45.763,
    "l": 46.275
  },
  "oklch": {
    "l": 0.44653,
    "c": 0.16622,
    "h": 281
  },
  "luminance": 0.08062
}

Semantic roles & 50–950 ramp

primary
#4940AC
secondary
#BCC187
accent
#D552CB
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0813
muted
#7D7B82

Preview Lab

Preview with #4940AC

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

Preview Lab → · Contrast checker → · Palette generator →

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