#4940BF#4940BF

#4940BF is a mid, vivid blue. Relative luminance 0.088; OKLCH L 46.3% C 0.191 H 279.0°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#4940BF
RGBrgb(73, 64, 191)
HSLhsl(244, 50%, 50%)
HSVhsv(244, 66%, 75%)
CMYKcmyk(61.8%, 66.5%, 0%, 25.1%)
CIE-LABlab(35.68, 41.18, -65.45)
CIE-LCHlch(35.68, 77.33, 302.18°)
OKLaboklab(46.29% 0.03 -0.1886)
OKLCHoklch(46.29% 0.191 279)
XYZxyz(13.9820, 8.8438, 50.2503)
Luminance0.0885 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4940BF #B6BF40
analogous
#4076BF #4940BF #8940BF
triadic
#4940BF #BF4940 #40BF49
tetradic
#4940BF #BF4076 #B6BF40 #40BF89
square
#4940BF #BF4076 #B6BF40 #40BF89
split-complementary
#4940BF #BF8940 #76BF40
monochromatic
#262163 #373191 #4940BF #756ECE #A09CDE

Accessibility & contrast

On white

7.58
#4940BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#4940BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4940BF
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4940BF#FFFFFF#000000##FFFFFF
##4940BF1.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C3
Deuteranopia (green-blind)
#004FBD
Tritanopia (blue-blind)
#00617A
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #4940bf;
/* rgb */ color: rgb(73, 64, 191);
/* oklch */ color: oklch(46.3% 0.191 279.0);
Tailwind
colors: {
  custom: {
    50: '#8976d3',
    500: '#4940bf',
    950: '#000000',
  },
}
SCSS
$custom: #4940bf;
$custom-light: #8976d3;
$custom-dark: #000000;
JSON
{
  "hex": "#4940bf",
  "rgb": {
    "r": 73,
    "g": 64,
    "b": 191
  },
  "hsl": {
    "h": 244.252,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.46285,
    "c": 0.19098,
    "h": 279
  },
  "luminance": 0.08845
}

Semantic roles & 50–950 ramp

primary
#4940BF
secondary
#C6CA91
accent
#D94ECF
background
#F9F7FD
surface
#F1EDFA
border
#CBC8D3
text
#0D0814
muted
#7E7B83

Preview Lab

Preview with #4940BF

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

Preview Lab → · Contrast checker → · Palette generator →

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