#4940AF#4940AF

#4940AF is a dark, vivid blue. Relative luminance 0.082; OKLCH L 44.9% C 0.170 H 280.7°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#4940AF
RGBrgb(73, 64, 175)
HSLhsl(245, 46%, 47%)
HSVhsv(245, 63%, 69%)
CMYKcmyk(58.3%, 63.4%, 0%, 31.4%)
CIE-LABlab(34.35, 35.99, -58.17)
CIE-LCHlch(34.35, 68.41, 301.75°)
OKLaboklab(44.9% 0.0316 -0.1672)
OKLCHoklch(44.9% 0.17 280.7)
XYZxyz(12.3165, 8.1776, 41.4785)
Luminance0.0818 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4940AF #A6AF40
analogous
#406FAF #4940AF #8140AF
triadic
#4940AF #AF4940 #40AF49
tetradic
#4940AF #AF406F #A6AF40 #40AF81
square
#4940AF #AF406F #A6AF40 #40AF81
split-complementary
#4940AF #AF8140 #6FAF40
monochromatic
#241F55 #363082 #4940AF #6D65C7 #9892D7

Accessibility & contrast

On white

7.97
#4940AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#4940AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4940AF
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4940AF#FFFFFF#000000##FFFFFF
##4940AF1.007.972.647.97
#FFFFFF7.971.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B3
Deuteranopia (green-blind)
#004DAD
Tritanopia (blue-blind)
#0A5B71
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #4940af;
/* rgb */ color: rgb(73, 64, 175);
/* oklch */ color: oklch(44.9% 0.170 280.7);
Tailwind
colors: {
  custom: {
    50: '#8675c8',
    500: '#4940af',
    950: '#000000',
  },
}
SCSS
$custom: #4940af;
$custom-light: #8675c8;
$custom-dark: #000000;
JSON
{
  "hex": "#4940af",
  "rgb": {
    "r": 73,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 244.865,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.44904,
    "c": 0.17021,
    "h": 280.7
  },
  "luminance": 0.08178
}

Semantic roles & 50–950 ramp

primary
#4940AF
secondary
#BEC388
accent
#D652CB
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0813
muted
#7D7B82

Preview Lab

Preview with #4940AF

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

Preview Lab → · Contrast checker → · Palette generator →

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