#4940C4#4940C4

#4940C4 is a mid, vivid blue. Relative luminance 0.091; OKLCH L 46.7% C 0.197 H 278.6°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#4940C4
RGBrgb(73, 64, 196)
HSLhsl(244, 53%, 51%)
HSVhsv(244, 67%, 77%)
CMYKcmyk(62.8%, 67.3%, 0%, 23.1%)
CIE-LABlab(36.11, 42.79, -67.67)
CIE-LCHlch(36.11, 80.06, 302.31°)
OKLaboklab(46.73% 0.0294 -0.1951)
OKLCHoklch(46.73% 0.197 278.6)
XYZxyz(14.5417, 9.0676, 53.1978)
Luminance0.0907 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4940C4 #BBC440
analogous
#4079C4 #4940C4 #8B40C4
triadic
#4940C4 #C44940 #40C449
tetradic
#4940C4 #C44079 #BBC440 #40C48B
square
#4940C4 #C44079 #BBC440 #40C48B
split-complementary
#4940C4 #C48B40 #79C440
monochromatic
#252069 #362F98 #4940C4 #766FD2 #A29EE1

Accessibility & contrast

On white

7.46
#4940C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#4940C4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4940C4
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4940C4#FFFFFF#000000##FFFFFF
##4940C41.007.462.817.46
#FFFFFF7.461.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC8
Deuteranopia (green-blind)
#0050C1
Tritanopia (blue-blind)
#00637D
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #4940c4;
/* rgb */ color: rgb(73, 64, 196);
/* oklch */ color: oklch(46.7% 0.197 278.6);
Tailwind
colors: {
  custom: {
    50: '#8a76d7',
    500: '#4940c4',
    950: '#000000',
  },
}
SCSS
$custom: #4940c4;
$custom-light: #8a76d7;
$custom-dark: #000000;
JSON
{
  "hex": "#4940c4",
  "rgb": {
    "r": 73,
    "g": 64,
    "b": 196
  },
  "hsl": {
    "h": 244.091,
    "s": 52.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.4673,
    "c": 0.19731,
    "h": 278.6
  },
  "luminance": 0.09069
}

Semantic roles & 50–950 ramp

primary
#4940C4
secondary
#C9CD93
accent
#DC4CD2
background
#F9F7FD
surface
#F1EDFA
border
#CBC8D3
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4940C4

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

Preview Lab → · Contrast checker → · Palette generator →

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