#4742D1#4742D1

#4742D1 is a mid, highly saturated blue. Relative luminance 0.098; OKLCH L 48.1% C 0.212 H 276.4°. Best body text is #FFFFFF at 7.08:1 contrast (WCAG AA passes).

Color values

HEX#4742D1
RGBrgb(71, 66, 209)
HSLhsl(242, 61%, 54%)
HSVhsv(242, 68%, 82%)
CMYKcmyk(66%, 68.4%, 0%, 18%)
CIE-LABlab(37.55, 45.55, -72.87)
CIE-LCHlch(37.55, 85.94, 302.01°)
OKLaboklab(48.08% 0.0237 -0.2104)
OKLCHoklch(48.08% 0.212 276.4)
XYZxyz(16.0516, 9.8381, 61.3623)
Luminance0.0984 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4742D1 #CCD142
analogous
#4285D1 #4742D1 #8F42D1
triadic
#4742D1 #D14742 #42D147
tetradic
#4742D1 #D14285 #CCD142 #42D18F
square
#4742D1 #D14285 #CCD142 #42D18F
split-complementary
#4742D1 #D18F42 #85D142
monochromatic
#211E7B #2E2AAC #4742D1 #7773DD #A7A4E9

Accessibility & contrast

On white

7.08
#4742D1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#4742D1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4742D1
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4742D1#FFFFFF#000000##FFFFFF
##4742D11.007.082.977.08
#FFFFFF7.081.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD5
Deuteranopia (green-blind)
#0052CE
Tritanopia (blue-blind)
#006984
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #4742d1;
/* rgb */ color: rgb(71, 66, 209);
/* oklch */ color: oklch(48.1% 0.212 276.4);
Tailwind
colors: {
  custom: {
    50: '#8b77e0',
    500: '#4742d1',
    950: '#000000',
  },
}
SCSS
$custom: #4742d1;
$custom-light: #8b77e0;
$custom-dark: #000000;
JSON
{
  "hex": "#4742d1",
  "rgb": {
    "r": 71,
    "g": 66,
    "b": 209
  },
  "hsl": {
    "h": 242.098,
    "s": 60.851,
    "l": 53.922
  },
  "oklch": {
    "l": 0.48081,
    "c": 0.21173,
    "h": 276.4
  },
  "luminance": 0.09839
}

Semantic roles & 50–950 ramp

primary
#4742D1
secondary
#D4D699
accent
#E444DE
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0D0915
muted
#7E7B83

Preview Lab

Preview with #4742D1

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

Preview Lab → · Contrast checker → · Palette generator →

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