#4A42C4#4A42C4

#4A42C4 is a mid, vivid blue. Relative luminance 0.093; OKLCH L 47.1% C 0.195 H 278.6°. Best body text is #FFFFFF at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#4A42C4
RGBrgb(74, 66, 196)
HSLhsl(244, 52%, 51%)
HSVhsv(244, 66%, 77%)
CMYKcmyk(62.2%, 66.3%, 0%, 23.1%)
CIE-LABlab(36.62, 41.76, -66.83)
CIE-LCHlch(36.62, 78.80, 302.00°)
OKLaboklab(47.12% 0.0291 -0.1926)
OKLCHoklch(47.12% 0.195 278.6)
XYZxyz(14.7329, 9.3367, 53.2396)
Luminance0.0934 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A42C4 #BCC442
analogous
#427BC4 #4A42C4 #8B42C4
triadic
#4A42C4 #C44A42 #42C44A
tetradic
#4A42C4 #C4427B #BCC442 #42C48B
square
#4A42C4 #C4427B #BCC442 #42C48B
split-complementary
#4A42C4 #C48B42 #7BC442
monochromatic
#26216A #363099 #4A42C4 #7771D3 #A39FE1

Accessibility & contrast

On white

7.32
#4A42C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#4A42C4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A42C4
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A42C4#FFFFFF#000000##FFFFFF
##4A42C41.007.322.877.32
#FFFFFF7.321.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC8
Deuteranopia (green-blind)
#0051C1
Tritanopia (blue-blind)
#00647D
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #4a42c4;
/* rgb */ color: rgb(74, 66, 196);
/* oklch */ color: oklch(47.1% 0.195 278.6);
Tailwind
colors: {
  custom: {
    50: '#8a77d7',
    500: '#4a42c4',
    950: '#000000',
  },
}
SCSS
$custom: #4a42c4;
$custom-light: #8a77d7;
$custom-dark: #000000;
JSON
{
  "hex": "#4a42c4",
  "rgb": {
    "r": 74,
    "g": 66,
    "b": 196
  },
  "hsl": {
    "h": 243.692,
    "s": 52.419,
    "l": 51.373
  },
  "oklch": {
    "l": 0.47118,
    "c": 0.1948,
    "h": 278.6
  },
  "luminance": 0.09338
}

Semantic roles & 50–950 ramp

primary
#4A42C4
secondary
#CACE94
accent
#DC4CD3
background
#F9F7FD
surface
#F1EDFA
border
#CBC8D3
text
#0D0914
muted
#7E7B83

Preview Lab

Preview with #4A42C4

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

Preview Lab → · Contrast checker → · Palette generator →

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