#4D42CC#4D42CC

#4D42CC is a mid, highly saturated blue. Relative luminance 0.098; OKLCH L 48.0% C 0.204 H 279.0°. Best body text is #FFFFFF at 7.08:1 contrast (WCAG AA passes).

Color values

HEX#4D42CC
RGBrgb(77, 66, 204)
HSLhsl(245, 58%, 53%)
HSVhsv(245, 68%, 80%)
CMYKcmyk(62.3%, 67.6%, 0%, 20%)
CIE-LABlab(37.54, 44.75, -69.98)
CIE-LCHlch(37.54, 83.06, 302.60°)
OKLaboklab(48.05% 0.0319 -0.2018)
OKLCHoklch(48.05% 0.204 279)
XYZxyz(15.9044, 9.8326, 58.1748)
Luminance0.0983 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D42CC #C1CC42
analogous
#427CCC #4D42CC #9242CC
triadic
#4D42CC #CC4D42 #42CC4D
tetradic
#4D42CC #CC427C #C1CC42 #42CC92
square
#4D42CC #CC427C #C1CC42 #42CC92
split-complementary
#4D42CC #CC9242 #7CCC42
monochromatic
#261F74 #362CA4 #4D42CC #7A72D9 #A8A2E6

Accessibility & contrast

On white

7.08
#4D42CC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#4D42CC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D42CC
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D42CC#FFFFFF#000000##FFFFFF
##4D42CC1.007.082.977.08
#FFFFFF7.081.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED0
Deuteranopia (green-blind)
#0053C9
Tritanopia (blue-blind)
#006682
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #4d42cc;
/* rgb */ color: rgb(77, 66, 204);
/* oklch */ color: oklch(48.0% 0.204 279.0);
Tailwind
colors: {
  custom: {
    50: '#8d78dd',
    500: '#4d42cc',
    950: '#000000',
  },
}
SCSS
$custom: #4d42cc;
$custom-light: #8d78dd;
$custom-dark: #000000;
JSON
{
  "hex": "#4d42cc",
  "rgb": {
    "r": 77,
    "g": 66,
    "b": 204
  },
  "hsl": {
    "h": 244.783,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.4805,
    "c": 0.20426,
    "h": 279
  },
  "luminance": 0.09834
}

Semantic roles & 50–950 ramp

primary
#4D42CC
secondary
#CED397
accent
#E147D4
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0D0915
muted
#7E7B83

Preview Lab

Preview with #4D42CC

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

Preview Lab → · Contrast checker → · Palette generator →

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