#4940AB#4940AB

#4940AB is a dark, vivid blue. Relative luminance 0.080; OKLCH L 44.6% C 0.165 H 281.1°. Best body text is #FFFFFF at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#4940AB
RGBrgb(73, 64, 171)
HSLhsl(245, 46%, 46%)
HSVhsv(245, 63%, 67%)
CMYKcmyk(57.3%, 62.6%, 0%, 32.9%)
CIE-LABlab(34.03, 34.69, -56.31)
CIE-LCHlch(34.03, 66.14, 301.64°)
OKLaboklab(44.57% 0.0319 -0.1618)
OKLCHoklch(44.57% 0.165 281.1)
XYZxyz(11.9294, 8.0228, 39.4401)
Luminance0.0802 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4940AB #A2AB40
analogous
#406CAB #4940AB #7E40AB
triadic
#4940AB #AB4940 #40AB49
tetradic
#4940AB #AB406C #A2AB40 #40AB7E
square
#4940AB #AB406C #A2AB40 #40AB7E
split-complementary
#4940AB #AB7E40 #6CAB40
monochromatic
#231F52 #362F7E #4940AB #6C63C5 #9690D5

Accessibility & contrast

On white

8.06
#4940AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#4940AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4940AB
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4940AB#FFFFFF#000000##FFFFFF
##4940AB1.008.062.608.06
#FFFFFF8.061.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054AE
Deuteranopia (green-blind)
#004CA9
Tritanopia (blue-blind)
#145A6F
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #4940ab;
/* rgb */ color: rgb(73, 64, 171);
/* oklch */ color: oklch(44.6% 0.165 281.1);
Tailwind
colors: {
  custom: {
    50: '#8575c5',
    500: '#4940ab',
    950: '#000000',
  },
}
SCSS
$custom: #4940ab;
$custom-light: #8575c5;
$custom-dark: #000000;
JSON
{
  "hex": "#4940ab",
  "rgb": {
    "r": 73,
    "g": 64,
    "b": 171
  },
  "hsl": {
    "h": 245.047,
    "s": 45.532,
    "l": 46.078
  },
  "oklch": {
    "l": 0.4457,
    "c": 0.16488,
    "h": 281.1
  },
  "luminance": 0.08024
}

Semantic roles & 50–950 ramp

primary
#4940AB
secondary
#BCC186
accent
#D553CA
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0813
muted
#7D7B82

Preview Lab

Preview with #4940AB

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

Preview Lab → · Contrast checker → · Palette generator →

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