#4940C2#4940C2

#4940C2 is a mid, vivid blue. Relative luminance 0.090; OKLCH L 46.6% C 0.195 H 278.7°. Best body text is #FFFFFF at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#4940C2
RGBrgb(73, 64, 194)
HSLhsl(244, 52%, 51%)
HSVhsv(244, 67%, 76%)
CMYKcmyk(62.4%, 67%, 0%, 23.9%)
CIE-LABlab(35.94, 42.15, -66.79)
CIE-LCHlch(35.94, 78.97, 302.25°)
OKLaboklab(46.55% 0.0296 -0.1925)
OKLCHoklch(46.55% 0.195 278.7)
XYZxyz(14.3155, 8.9772, 52.0069)
Luminance0.0898 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4940C2 #B9C240
analogous
#4078C2 #4940C2 #8A40C2
triadic
#4940C2 #C24940 #40C249
tetradic
#4940C2 #C24078 #B9C240 #40C28A
square
#4940C2 #C24078 #B9C240 #40C28A
split-complementary
#4940C2 #C28A40 #78C240
monochromatic
#262167 #373095 #4940C2 #756ED1 #A19DE0

Accessibility & contrast

On white

7.51
#4940C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#4940C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4940C2
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4940C2#FFFFFF#000000##FFFFFF
##4940C21.007.512.807.51
#FFFFFF7.511.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC6
Deuteranopia (green-blind)
#004FC0
Tritanopia (blue-blind)
#00627B
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #4940c2;
/* rgb */ color: rgb(73, 64, 194);
/* oklch */ color: oklch(46.6% 0.195 278.7);
Tailwind
colors: {
  custom: {
    50: '#8976d6',
    500: '#4940c2',
    950: '#000000',
  },
}
SCSS
$custom: #4940c2;
$custom-light: #8976d6;
$custom-dark: #000000;
JSON
{
  "hex": "#4940c2",
  "rgb": {
    "r": 73,
    "g": 64,
    "b": 194
  },
  "hsl": {
    "h": 244.154,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.46551,
    "c": 0.19479,
    "h": 278.7
  },
  "luminance": 0.08978
}

Semantic roles & 50–950 ramp

primary
#4940C2
secondary
#C8CC92
accent
#DB4DD1
background
#F9F7FD
surface
#F1EDFA
border
#CBC8D3
text
#0D0814
muted
#7E7B83

Preview Lab

Preview with #4940C2

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

Preview Lab → · Contrast checker → · Palette generator →

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