#4D42CE#4D42CE

#4D42CE is a mid, highly saturated blue. Relative luminance 0.099; OKLCH L 48.2% C 0.207 H 278.8°. Best body text is #FFFFFF at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#4D42CE
RGBrgb(77, 66, 206)
HSLhsl(245, 59%, 53%)
HSVhsv(245, 68%, 81%)
CMYKcmyk(62.6%, 68%, 0%, 19.2%)
CIE-LABlab(37.72, 45.38, -70.85)
CIE-LCHlch(37.72, 84.14, 302.64°)
OKLaboklab(48.23% 0.0316 -0.2043)
OKLCHoklch(48.23% 0.207 278.8)
XYZxyz(16.1458, 9.9292, 59.4462)
Luminance0.0993 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D42CE #C3CE42
analogous
#427DCE #4D42CE #9342CE
triadic
#4D42CE #CE4D42 #42CE4D
tetradic
#4D42CE #CE427D #C3CE42 #42CE93
square
#4D42CE #CE427D #C3CE42 #42CE93
split-complementary
#4D42CE #CE9342 #7DCE42
monochromatic
#261F77 #352BA7 #4D42CE #7B73DB #A9A3E7

Accessibility & contrast

On white

7.03
#4D42CE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#4D42CE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D42CE
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D42CE#FFFFFF#000000##FFFFFF
##4D42CE1.007.032.997.03
#FFFFFF7.031.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED2
Deuteranopia (green-blind)
#0053CB
Tritanopia (blue-blind)
#006783
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #4d42ce;
/* rgb */ color: rgb(77, 66, 206);
/* oklch */ color: oklch(48.2% 0.207 278.8);
Tailwind
colors: {
  custom: {
    50: '#8d78de',
    500: '#4d42ce',
    950: '#000000',
  },
}
SCSS
$custom: #4d42ce;
$custom-light: #8d78de;
$custom-dark: #000000;
JSON
{
  "hex": "#4d42ce",
  "rgb": {
    "r": 77,
    "g": 66,
    "b": 206
  },
  "hsl": {
    "h": 244.714,
    "s": 58.824,
    "l": 53.333
  },
  "oklch": {
    "l": 0.48229,
    "c": 0.20675,
    "h": 278.8
  },
  "luminance": 0.0993
}

Semantic roles & 50–950 ramp

primary
#4D42CE
secondary
#CFD498
accent
#E246D6
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #4D42CE

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

Preview Lab → · Contrast checker → · Palette generator →

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