#4E42CD#4E42CD

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

Color values

HEX#4E42CD
RGBrgb(78, 66, 205)
HSLhsl(245, 58%, 53%)
HSVhsv(245, 68%, 80%)
CMYKcmyk(62%, 67.8%, 0%, 19.6%)
CIE-LABlab(37.70, 45.21, -70.29)
CIE-LCHlch(37.70, 83.57, 302.75°)
OKLaboklab(48.21% 0.033 -0.2026)
OKLCHoklch(48.21% 0.205 279.3)
XYZxyz(16.1060, 9.9227, 58.8123)
Luminance0.0992 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4E42CD #C1CD42
analogous
#427BCD #4E42CD #9342CD
triadic
#4E42CD #CD4E42 #42CD4E
tetradic
#4E42CD #CD427B #C1CD42 #42CD93
square
#4E42CD #CD427B #C1CD42 #42CD93
split-complementary
#4E42CD #CD9342 #7BCD42
monochromatic
#271F76 #362CA6 #4E42CD #7B72DA #A9A3E7

Accessibility & contrast

On white

7.04
#4E42CD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4E42CD
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4E42CD#FFFFFF#000000##FFFFFF
##4E42CD1.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED1
Deuteranopia (green-blind)
#0053CA
Tritanopia (blue-blind)
#006782
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #4e42cd;
/* rgb */ color: rgb(78, 66, 205);
/* oklch */ color: oklch(48.2% 0.205 279.3);
Tailwind
colors: {
  custom: {
    50: '#8e78dd',
    500: '#4e42cd',
    950: '#000000',
  },
}
SCSS
$custom: #4e42cd;
$custom-light: #8e78dd;
$custom-dark: #000000;
JSON
{
  "hex": "#4e42cd",
  "rgb": {
    "r": 78,
    "g": 66,
    "b": 205
  },
  "hsl": {
    "h": 245.18,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.48213,
    "c": 0.20531,
    "h": 279.3
  },
  "luminance": 0.09924
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4E42CD

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

Preview Lab → · Contrast checker → · Palette generator →

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