#4742D2#4742D2

#4742D2 is a mid, highly saturated blue. Relative luminance 0.099; OKLCH L 48.2% C 0.213 H 276.3°. Best body text is #FFFFFF at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#4742D2
RGBrgb(71, 66, 210)
HSLhsl(242, 62%, 54%)
HSVhsv(242, 69%, 82%)
CMYKcmyk(66.2%, 68.6%, 0%, 17.6%)
CIE-LABlab(37.64, 45.88, -73.30)
CIE-LCHlch(37.64, 86.47, 302.04°)
OKLaboklab(48.17% 0.0235 -0.2117)
OKLCHoklch(48.17% 0.213 276.3)
XYZxyz(16.1758, 9.8878, 62.0164)
Luminance0.0989 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4742D2 #CDD242
analogous
#4285D2 #4742D2 #8F42D2
triadic
#4742D2 #D24742 #42D247
tetradic
#4742D2 #D24285 #CDD242 #42D28F
square
#4742D2 #D24285 #CDD242 #42D28F
split-complementary
#4742D2 #D28F42 #85D242
monochromatic
#211E7C #2E29AD #4742D2 #7773DE #A7A5EA

Accessibility & contrast

On white

7.05
#4742D2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#4742D2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4742D2
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4742D2#FFFFFF#000000##FFFFFF
##4742D21.007.052.987.05
#FFFFFF7.051.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD6
Deuteranopia (green-blind)
#0052CF
Tritanopia (blue-blind)
#006985
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #4742d2;
/* rgb */ color: rgb(71, 66, 210);
/* oklch */ color: oklch(48.2% 0.213 276.3);
Tailwind
colors: {
  custom: {
    50: '#8b77e1',
    500: '#4742d2',
    950: '#000000',
  },
}
SCSS
$custom: #4742d2;
$custom-light: #8b77e1;
$custom-dark: #000000;
JSON
{
  "hex": "#4742d2",
  "rgb": {
    "r": 71,
    "g": 66,
    "b": 210
  },
  "hsl": {
    "h": 242.083,
    "s": 61.538,
    "l": 54.118
  },
  "oklch": {
    "l": 0.48173,
    "c": 0.21296,
    "h": 276.3
  },
  "luminance": 0.09889
}

Semantic roles & 50–950 ramp

primary
#4742D2
secondary
#D4D799
accent
#E543DF
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0D0915
muted
#7E7B83

Preview Lab

Preview with #4742D2

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

Preview Lab → · Contrast checker → · Palette generator →

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