#4D42CF#4D42CF

#4D42CF is a mid, highly saturated blue. Relative luminance 0.100; OKLCH L 48.3% C 0.208 H 278.7°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#4D42CF
RGBrgb(77, 66, 207)
HSLhsl(245, 59%, 54%)
HSVhsv(245, 68%, 81%)
CMYKcmyk(62.8%, 68.1%, 0%, 18.8%)
CIE-LABlab(37.80, 45.70, -71.29)
CIE-LCHlch(37.80, 84.68, 302.66°)
OKLaboklab(48.32% 0.0315 -0.2056)
OKLCHoklch(48.32% 0.208 278.7)
XYZxyz(16.2677, 9.9779, 60.0881)
Luminance0.0998 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D42CF #C4CF42
analogous
#427DCF #4D42CF #9342CF
triadic
#4D42CF #CF4D42 #42CF4D
tetradic
#4D42CF #CF427D #C4CF42 #42CF93
square
#4D42CF #CF427D #C4CF42 #42CF93
split-complementary
#4D42CF #CF9342 #7DCF42
monochromatic
#251F78 #352BA9 #4D42CF #7B73DB #A9A4E8

Accessibility & contrast

On white

7.01
#4D42CF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#4D42CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4D42CF
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D42CF#FFFFFF#000000##FFFFFF
##4D42CF1.007.013.007.01
#FFFFFF7.011.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4d42cf;
/* rgb */ color: rgb(77, 66, 207);
/* oklch */ color: oklch(48.3% 0.208 278.7);
Tailwind
colors: {
  custom: {
    50: '#8e78df',
    500: '#4d42cf',
    950: '#000000',
  },
}
SCSS
$custom: #4d42cf;
$custom-light: #8e78df;
$custom-dark: #000000;
JSON
{
  "hex": "#4d42cf",
  "rgb": {
    "r": 77,
    "g": 66,
    "b": 207
  },
  "hsl": {
    "h": 244.681,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.48319,
    "c": 0.20798,
    "h": 278.7
  },
  "luminance": 0.09979
}

Semantic roles & 50–950 ramp

primary
#4D42CF
secondary
#D0D598
accent
#E345D6
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #4D42CF

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

Preview Lab → · Contrast checker → · Palette generator →

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