#4A42EB#4A42EB

#4A42EB is a mid, highly saturated blue. Relative luminance 0.114; OKLCH L 50.7% C 0.242 H 275.5°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#4A42EB
RGBrgb(74, 66, 235)
HSLhsl(243, 81%, 59%)
HSVhsv(243, 72%, 92%)
CMYKcmyk(68.5%, 71.9%, 0%, 7.8%)
CIE-LABlab(40.16, 54.14, -83.44)
CIE-LCHlch(40.16, 99.46, 302.98°)
OKLaboklab(50.73% 0.0232 -0.2412)
OKLCHoklch(50.73% 0.242 275.5)
XYZxyz(19.7627, 11.3486, 79.7302)
Luminance0.1135 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A42EB #E3EB42
analogous
#428FEB #4A42EB #9F42EB
triadic
#4A42EB #EB4A42 #42EB4A
tetradic
#4A42EB #EB428F #E3EB42 #42EB9F
square
#4A42EB #EB428F #E3EB42 #42EB9F
split-complementary
#4A42EB #EB9F42 #8FEB42
monochromatic
#1811A2 #2017D9 #4A42EB #7F79F1 #B4B1F7

Accessibility & contrast

On white

6.42
#4A42EB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#4A42EB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4A42EB
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A42EB#FFFFFF#000000##FFFFFF
##4A42EB1.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066F0
Deuteranopia (green-blind)
#0057E8
Tritanopia (blue-blind)
#007293
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #4a42eb;
/* rgb */ color: rgb(74, 66, 235);
/* oklch */ color: oklch(50.7% 0.242 275.5);
Tailwind
colors: {
  custom: {
    50: '#9278f3',
    500: '#4a42eb',
    950: '#000000',
  },
}
SCSS
$custom: #4a42eb;
$custom-light: #9278f3;
$custom-dark: #000000;
JSON
{
  "hex": "#4a42eb",
  "rgb": {
    "r": 74,
    "g": 66,
    "b": 235
  },
  "hsl": {
    "h": 242.84,
    "s": 80.861,
    "l": 59.02
  },
  "oklch": {
    "l": 0.50731,
    "c": 0.24229,
    "h": 275.5
  },
  "luminance": 0.1135
}

Semantic roles & 50–950 ramp

primary
#4A42EB
secondary
#E2E6A3
accent
#F731EE
background
#F9F7FF
surface
#F2EDFE
border
#CCC8D6
text
#0F0917
muted
#7E7B85

Preview Lab

Preview with #4A42EB

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

Preview Lab → · Contrast checker → · Palette generator →

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