#4D40CE#4D40CE

#4D40CE is a mid, highly saturated blue. Relative luminance 0.097; OKLCH L 47.9% C 0.209 H 279.1°. Best body text is #FFFFFF at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#4D40CE
RGBrgb(77, 64, 206)
HSLhsl(245, 59%, 53%)
HSVhsv(245, 69%, 81%)
CMYKcmyk(62.6%, 68.9%, 0%, 19.2%)
CIE-LABlab(37.30, 46.52, -71.53)
CIE-LCHlch(37.30, 85.33, 303.04°)
OKLaboklab(47.93% 0.0331 -0.2063)
OKLCHoklch(47.93% 0.209 279.1)
XYZxyz(16.0310, 9.6996, 59.4080)
Luminance0.0970 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D40CE #C1CE40
analogous
#407ACE #4D40CE #9440CE
triadic
#4D40CE #CE4D40 #40CE4D
tetradic
#4D40CE #CE407A #C1CE40 #40CE94
square
#4D40CE #CE407A #C1CE40 #40CE94
split-complementary
#4D40CE #CE9440 #7ACE40
monochromatic
#261E75 #362BA6 #4D40CE #7A71DA #A8A1E7

Accessibility & contrast

On white

7.14
#4D40CE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#4D40CE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D40CE
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D40CE#FFFFFF#000000##FFFFFF
##4D40CE1.007.142.947.14
#FFFFFF7.141.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DD2
Deuteranopia (green-blind)
#0052CB
Tritanopia (blue-blind)
#006682
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #4d40ce;
/* rgb */ color: rgb(77, 64, 206);
/* oklch */ color: oklch(47.9% 0.209 279.1);
Tailwind
colors: {
  custom: {
    50: '#8e76de',
    500: '#4d40ce',
    950: '#000000',
  },
}
SCSS
$custom: #4d40ce;
$custom-light: #8e76de;
$custom-dark: #000000;
JSON
{
  "hex": "#4d40ce",
  "rgb": {
    "r": 77,
    "g": 64,
    "b": 206
  },
  "hsl": {
    "h": 245.493,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.47929,
    "c": 0.20896,
    "h": 279.1
  },
  "luminance": 0.09701
}

Semantic roles & 50–950 ramp

primary
#4D40CE
secondary
#CED496
accent
#E245D4
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #4D40CE

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

Preview Lab → · Contrast checker → · Palette generator →

#4D40CE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva