#4E42CC#4E42CC

#4E42CC is a mid, highly saturated blue. Relative luminance 0.099; OKLCH L 48.1% C 0.204 H 279.4°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#4E42CC
RGBrgb(78, 66, 204)
HSLhsl(245, 58%, 53%)
HSVhsv(245, 68%, 80%)
CMYKcmyk(61.8%, 67.6%, 0%, 20%)
CIE-LABlab(37.62, 44.89, -69.85)
CIE-LCHlch(37.62, 83.03, 302.73°)
OKLaboklab(48.12% 0.0332 -0.2014)
OKLCHoklch(48.12% 0.204 279.4)
XYZxyz(15.9857, 9.8745, 58.1786)
Luminance0.0988 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E42CC #C0CC42
analogous
#427BCC #4E42CC #9342CC
triadic
#4E42CC #CC4E42 #42CC4E
tetradic
#4E42CC #CC427B #C0CC42 #42CC93
square
#4E42CC #CC427B #C0CC42 #42CC93
split-complementary
#4E42CC #CC9342 #7BCC42
monochromatic
#271F74 #372CA4 #4E42CC #7B72D9 #A8A2E6

Accessibility & contrast

On white

7.06
#4E42CC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#4E42CC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4E42CC
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E42CC#FFFFFF#000000##FFFFFF
##4E42CC1.007.062.987.06
#FFFFFF7.061.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED0
Deuteranopia (green-blind)
#0053C9
Tritanopia (blue-blind)
#006682
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #4e42cc;
/* rgb */ color: rgb(78, 66, 204);
/* oklch */ color: oklch(48.1% 0.204 279.4);
Tailwind
colors: {
  custom: {
    50: '#8d78dd',
    500: '#4e42cc',
    950: '#000000',
  },
}
SCSS
$custom: #4e42cc;
$custom-light: #8d78dd;
$custom-dark: #000000;
JSON
{
  "hex": "#4e42cc",
  "rgb": {
    "r": 78,
    "g": 66,
    "b": 204
  },
  "hsl": {
    "h": 245.217,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.48124,
    "c": 0.20407,
    "h": 279.4
  },
  "luminance": 0.09876
}

Semantic roles & 50–950 ramp

primary
#4E42CC
secondary
#CED397
accent
#E147D3
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #4E42CC

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

Preview Lab → · Contrast checker → · Palette generator →

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