#4D42CB#4D42CB

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

Color values

HEX#4D42CB
RGBrgb(77, 66, 203)
HSLhsl(245, 57%, 53%)
HSVhsv(245, 67%, 80%)
CMYKcmyk(62.1%, 67.5%, 0%, 20.4%)
CIE-LABlab(37.45, 44.43, -69.54)
CIE-LCHlch(37.45, 82.52, 302.58°)
OKLaboklab(47.96% 0.032 -0.2005)
OKLCHoklch(47.96% 0.203 279.1)
XYZxyz(15.7848, 9.7848, 57.5452)
Luminance0.0979 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D42CB #C0CB42
analogous
#427BCB #4D42CB #9242CB
triadic
#4D42CB #CB4D42 #42CB4D
tetradic
#4D42CB #CB427B #C0CB42 #42CB92
square
#4D42CB #CB427B #C0CB42 #42CB92
split-complementary
#4D42CB #CB9242 #7BCB42
monochromatic
#262073 #362DA3 #4D42CB #7A72D8 #A7A2E5

Accessibility & contrast

On white

7.10
#4D42CB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#4D42CB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D42CB
7.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D42CB#FFFFFF#000000##FFFFFF
##4D42CB1.007.102.967.10
#FFFFFF7.101.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DCF
Deuteranopia (green-blind)
#0053C8
Tritanopia (blue-blind)
#006681
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #4d42cb;
/* rgb */ color: rgb(77, 66, 203);
/* oklch */ color: oklch(48.0% 0.203 279.1);
Tailwind
colors: {
  custom: {
    50: '#8d78dc',
    500: '#4d42cb',
    950: '#000000',
  },
}
SCSS
$custom: #4d42cb;
$custom-light: #8d78dc;
$custom-dark: #000000;
JSON
{
  "hex": "#4d42cb",
  "rgb": {
    "r": 77,
    "g": 66,
    "b": 203
  },
  "hsl": {
    "h": 244.818,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.4796,
    "c": 0.20302,
    "h": 279.1
  },
  "luminance": 0.09786
}

Semantic roles & 50–950 ramp

primary
#4D42CB
secondary
#CDD297
accent
#E048D4
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0D0915
muted
#7E7B83

Preview Lab

Preview with #4D42CB

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

Preview Lab → · Contrast checker → · Palette generator →

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