#4940CB#4940CB

#4940CB is a mid, highly saturated blue. Relative luminance 0.094; OKLCH L 47.4% C 0.206 H 277.9°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#4940CB
RGBrgb(73, 64, 203)
HSLhsl(244, 57%, 52%)
HSVhsv(244, 68%, 80%)
CMYKcmyk(64%, 68.5%, 0%, 20.4%)
CIE-LABlab(36.73, 45.04, -70.73)
CIE-LCHlch(36.73, 83.86, 302.49°)
OKLaboklab(47.37% 0.0284 -0.2041)
OKLCHoklch(47.37% 0.206 277.9)
XYZxyz(15.3571, 9.3938, 57.4922)
Luminance0.0940 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4940CB #C2CB40
analogous
#407CCB #4940CB #8F40CB
triadic
#4940CB #CB4940 #40CB49
tetradic
#4940CB #CB407C #C2CB40 #40CB8F
square
#4940CB #CB407C #C2CB40 #40CB8F
split-complementary
#4940CB #CB8F40 #7CCB40
monochromatic
#241F72 #342CA2 #4940CB #7770D8 #A5A0E5

Accessibility & contrast

On white

7.29
#4940CB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#4940CB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4940CB
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4940CB#FFFFFF#000000##FFFFFF
##4940CB1.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CCF
Deuteranopia (green-blind)
#0051C8
Tritanopia (blue-blind)
#006580
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #4940cb;
/* rgb */ color: rgb(73, 64, 203);
/* oklch */ color: oklch(47.4% 0.206 277.9);
Tailwind
colors: {
  custom: {
    50: '#8b76dc',
    500: '#4940cb',
    950: '#000000',
  },
}
SCSS
$custom: #4940cb;
$custom-light: #8b76dc;
$custom-dark: #000000;
JSON
{
  "hex": "#4940cb",
  "rgb": {
    "r": 73,
    "g": 64,
    "b": 203
  },
  "hsl": {
    "h": 243.885,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.47365,
    "c": 0.20606,
    "h": 277.9
  },
  "luminance": 0.09395
}

Semantic roles & 50–950 ramp

primary
#4940CB
secondary
#CED295
accent
#E047D7
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4940CB

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

Preview Lab → · Contrast checker → · Palette generator →

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