#4742C5#4742C5

#4742C5 is a mid, vivid blue. Relative luminance 0.093; OKLCH L 47.0% C 0.197 H 277.4°. Best body text is #FFFFFF at 7.36:1 contrast (WCAG AA passes).

Color values

HEX#4742C5
RGBrgb(71, 66, 197)
HSLhsl(242, 53%, 52%)
HSVhsv(242, 66%, 77%)
CMYKcmyk(64%, 66.5%, 0%, 22.7%)
CIE-LABlab(36.49, 41.65, -67.64)
CIE-LCHlch(36.49, 79.44, 301.62°)
OKLaboklab(46.99% 0.0252 -0.1951)
OKLCHoklch(46.99% 0.197 277.4)
XYZxyz(14.6215, 9.2660, 53.8305)
Luminance0.0927 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4742C5 #C0C542
analogous
#427FC5 #4742C5 #8942C5
triadic
#4742C5 #C54742 #42C547
tetradic
#4742C5 #C5427F #C0C542 #42C589
square
#4742C5 #C5427F #C0C542 #42C589
split-complementary
#4742C5 #C58942 #7FC542
monochromatic
#24216C #332F9A #4742C5 #7571D3 #A2A0E2

Accessibility & contrast

On white

7.36
#4742C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#4742C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4742C5
7.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4742C5#FFFFFF#000000##FFFFFF
##4742C51.007.362.857.36
#FFFFFF7.361.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC9
Deuteranopia (green-blind)
#0050C2
Tritanopia (blue-blind)
#00647E
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #4742c5;
/* rgb */ color: rgb(71, 66, 197);
/* oklch */ color: oklch(47.0% 0.197 277.4);
Tailwind
colors: {
  custom: {
    50: '#8977d8',
    500: '#4742c5',
    950: '#000000',
  },
}
SCSS
$custom: #4742c5;
$custom-light: #8977d8;
$custom-dark: #000000;
JSON
{
  "hex": "#4742c5",
  "rgb": {
    "r": 71,
    "g": 66,
    "b": 197
  },
  "hsl": {
    "h": 242.29,
    "s": 53.036,
    "l": 51.569
  },
  "oklch": {
    "l": 0.46993,
    "c": 0.1967,
    "h": 277.4
  },
  "luminance": 0.09267
}

Semantic roles & 50–950 ramp

primary
#4742C5
secondary
#CCCE95
accent
#DC4BD7
background
#F9F7FD
surface
#F1EDFA
border
#CBC8D3
text
#0D0915
muted
#7E7B83

Preview Lab

Preview with #4742C5

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

Preview Lab → · Contrast checker → · Palette generator →

#4742C5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva