#4D42C4#4D42C4

#4D42C4 is a mid, vivid blue. Relative luminance 0.095; OKLCH L 47.3% C 0.194 H 279.8°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#4D42C4
RGBrgb(77, 66, 196)
HSLhsl(245, 52%, 51%)
HSVhsv(245, 66%, 77%)
CMYKcmyk(60.7%, 66.3%, 0%, 23.1%)
CIE-LABlab(36.85, 42.20, -66.45)
CIE-LCHlch(36.85, 78.72, 302.42°)
OKLaboklab(47.34% 0.0329 -0.1914)
OKLCHoklch(47.34% 0.194 279.8)
XYZxyz(14.9694, 9.4586, 53.2507)
Luminance0.0946 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D42C4 #B9C442
analogous
#4278C4 #4D42C4 #8E42C4
triadic
#4D42C4 #C44D42 #42C44D
tetradic
#4D42C4 #C44278 #B9C442 #42C48E
square
#4D42C4 #C44278 #B9C442 #42C48E
split-complementary
#4D42C4 #C48E42 #78C442
monochromatic
#27216A #393099 #4D42C4 #7971D3 #A59FE1

Accessibility & contrast

On white

7.26
#4D42C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#4D42C4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D42C4
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D42C4#FFFFFF#000000##FFFFFF
##4D42C41.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC8
Deuteranopia (green-blind)
#0052C1
Tritanopia (blue-blind)
#00647D
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #4d42c4;
/* rgb */ color: rgb(77, 66, 196);
/* oklch */ color: oklch(47.3% 0.194 279.8);
Tailwind
colors: {
  custom: {
    50: '#8c77d7',
    500: '#4d42c4',
    950: '#000000',
  },
}
SCSS
$custom: #4d42c4;
$custom-light: #8c77d7;
$custom-dark: #000000;
JSON
{
  "hex": "#4d42c4",
  "rgb": {
    "r": 77,
    "g": 66,
    "b": 196
  },
  "hsl": {
    "h": 245.077,
    "s": 52.419,
    "l": 51.373
  },
  "oklch": {
    "l": 0.47342,
    "c": 0.19423,
    "h": 279.8
  },
  "luminance": 0.0946
}

Semantic roles & 50–950 ramp

primary
#4D42C4
secondary
#C9CE94
accent
#DC4CD0
background
#F9F7FD
surface
#F1EDFA
border
#CBC8D3
text
#0D0914
muted
#7E7B83

Preview Lab

Preview with #4D42C4

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

Preview Lab → · Contrast checker → · Palette generator →

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