#4A42E5#4A42E5

#4A42E5 is a mid, highly saturated blue. Relative luminance 0.110; OKLCH L 50.2% C 0.235 H 275.9°. Best body text is #FFFFFF at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#4A42E5
RGBrgb(74, 66, 229)
HSLhsl(243, 76%, 58%)
HSVhsv(243, 71%, 90%)
CMYKcmyk(67.7%, 71.2%, 0%, 10.2%)
CIE-LABlab(39.59, 52.27, -80.97)
CIE-LCHlch(39.59, 96.37, 302.84°)
OKLaboklab(50.16% 0.0242 -0.234)
OKLCHoklch(50.16% 0.235 275.9)
XYZxyz(18.9105, 11.0077, 75.2417)
Luminance0.1101 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A42E5 #DDE542
analogous
#428BE5 #4A42E5 #9C42E5
triadic
#4A42E5 #E54A42 #42E54A
tetradic
#4A42E5 #E5428B #DDE542 #42E59C
square
#4A42E5 #E5428B #DDE542 #42E59C
split-complementary
#4A42E5 #E59C42 #8BE542
monochromatic
#1B1598 #251CCE #4A42E5 #7E78EC #B1AEF4

Accessibility & contrast

On white

6.56
#4A42E5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#4A42E5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4A42E5
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A42E5#FFFFFF#000000##FFFFFF
##4A42E51.006.563.206.56
#FFFFFF6.561.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064EA
Deuteranopia (green-blind)
#0056E2
Tritanopia (blue-blind)
#00708F
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #4a42e5;
/* rgb */ color: rgb(74, 66, 229);
/* oklch */ color: oklch(50.2% 0.235 275.9);
Tailwind
colors: {
  custom: {
    50: '#9078ef',
    500: '#4a42e5',
    950: '#000000',
  },
}
SCSS
$custom: #4a42e5;
$custom-light: #9078ef;
$custom-dark: #000000;
JSON
{
  "hex": "#4a42e5",
  "rgb": {
    "r": 74,
    "g": 66,
    "b": 229
  },
  "hsl": {
    "h": 242.945,
    "s": 75.814,
    "l": 57.843
  },
  "oklch": {
    "l": 0.50155,
    "c": 0.23523,
    "h": 275.9
  },
  "luminance": 0.11009
}

Semantic roles & 50–950 ramp

primary
#4A42E5
secondary
#DFE2A1
accent
#F235E9
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0917
muted
#7E7B85

Preview Lab

Preview with #4A42E5

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

Preview Lab → · Contrast checker → · Palette generator →

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