#4D42C8#4D42C8

#4D42C8 is a mid, vivid blue. Relative luminance 0.096; OKLCH L 47.7% C 0.199 H 279.4°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#4D42C8
RGBrgb(77, 66, 200)
HSLhsl(245, 55%, 52%)
HSVhsv(245, 67%, 78%)
CMYKcmyk(61.5%, 67%, 0%, 21.6%)
CIE-LABlab(37.19, 43.48, -68.22)
CIE-LCHlch(37.19, 80.90, 302.51°)
OKLaboklab(47.69% 0.0324 -0.1966)
OKLCHoklch(47.69% 0.199 279.4)
XYZxyz(15.4308, 9.6432, 55.6806)
Luminance0.0964 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D42C8 #BDC842
analogous
#427AC8 #4D42C8 #9042C8
triadic
#4D42C8 #C84D42 #42C84D
tetradic
#4D42C8 #C8427A #BDC842 #42C890
square
#4D42C8 #C8427A #BDC842 #42C890
split-complementary
#4D42C8 #C89042 #7AC842
monochromatic
#27206F #372E9F #4D42C8 #7A71D6 #A6A1E4

Accessibility & contrast

On white

7.17
#4D42C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#4D42C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D42C8
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D42C8#FFFFFF#000000##FFFFFF
##4D42C81.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DCC
Deuteranopia (green-blind)
#0052C5
Tritanopia (blue-blind)
#00657F
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #4d42c8;
/* rgb */ color: rgb(77, 66, 200);
/* oklch */ color: oklch(47.7% 0.199 279.4);
Tailwind
colors: {
  custom: {
    50: '#8c77da',
    500: '#4d42c8',
    950: '#000000',
  },
}
SCSS
$custom: #4d42c8;
$custom-light: #8c77da;
$custom-dark: #000000;
JSON
{
  "hex": "#4d42c8",
  "rgb": {
    "r": 77,
    "g": 66,
    "b": 200
  },
  "hsl": {
    "h": 244.925,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.47694,
    "c": 0.19926,
    "h": 279.4
  },
  "luminance": 0.09644
}

Semantic roles & 50–950 ramp

primary
#4D42C8
secondary
#CBD096
accent
#DE4AD2
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0D0915
muted
#7E7B83

Preview Lab

Preview with #4D42C8

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

Preview Lab → · Contrast checker → · Palette generator →

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