#4D42D1#4D42D1

#4D42D1 is a mid, highly saturated blue. Relative luminance 0.101; OKLCH L 48.5% C 0.210 H 278.5°. Best body text is #FFFFFF at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#4D42D1
RGBrgb(77, 66, 209)
HSLhsl(245, 61%, 54%)
HSVhsv(245, 68%, 82%)
CMYKcmyk(63.2%, 68.4%, 0%, 18%)
CIE-LABlab(37.98, 46.33, -72.15)
CIE-LCHlch(37.98, 85.75, 302.71°)
OKLaboklab(48.5% 0.0312 -0.2081)
OKLCHoklch(48.5% 0.21 278.5)
XYZxyz(16.5137, 10.0763, 61.3839)
Luminance0.1008 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D42D1 #C6D142
analogous
#427FD1 #4D42D1 #9542D1
triadic
#4D42D1 #D14D42 #42D14D
tetradic
#4D42D1 #D1427F #C6D142 #42D195
square
#4D42D1 #D1427F #C6D142 #42D195
split-complementary
#4D42D1 #D19542 #7FD142
monochromatic
#251E7B #342AAC #4D42D1 #7B73DD #AAA4E9

Accessibility & contrast

On white

6.96
#4D42D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#4D42D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4D42D1
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D42D1#FFFFFF#000000##FFFFFF
##4D42D11.006.963.026.96
#FFFFFF6.961.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD5
Deuteranopia (green-blind)
#0054CE
Tritanopia (blue-blind)
#006884
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #4d42d1;
/* rgb */ color: rgb(77, 66, 209);
/* oklch */ color: oklch(48.5% 0.210 278.5);
Tailwind
colors: {
  custom: {
    50: '#8e78e0',
    500: '#4d42d1',
    950: '#000000',
  },
}
SCSS
$custom: #4d42d1;
$custom-light: #8e78e0;
$custom-dark: #000000;
JSON
{
  "hex": "#4d42d1",
  "rgb": {
    "r": 77,
    "g": 66,
    "b": 209
  },
  "hsl": {
    "h": 244.615,
    "s": 60.851,
    "l": 53.922
  },
  "oklch": {
    "l": 0.485,
    "c": 0.21045,
    "h": 278.5
  },
  "luminance": 0.10078
}

Semantic roles & 50–950 ramp

primary
#4D42D1
secondary
#D1D699
accent
#E444D8
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #4D42D1

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

Preview Lab → · Contrast checker → · Palette generator →

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