#4742DC#4742DC

#4742DC is a mid, highly saturated blue. Relative luminance 0.104; OKLCH L 49.1% C 0.225 H 275.6°. Best body text is #FFFFFF at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#4742DC
RGBrgb(71, 66, 220)
HSLhsl(242, 69%, 56%)
HSVhsv(242, 70%, 86%)
CMYKcmyk(67.7%, 70%, 0%, 13.7%)
CIE-LABlab(38.55, 49.09, -77.55)
CIE-LCHlch(38.55, 91.78, 302.33°)
OKLaboklab(49.11% 0.0221 -0.2241)
OKLCHoklch(49.11% 0.225 275.6)
XYZxyz(17.4608, 10.4017, 68.7838)
Luminance0.1040 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4742DC #D7DC42
analogous
#428ADC #4742DC #9442DC
triadic
#4742DC #DC4742 #42DC47
tetradic
#4742DC #DC428A #D7DC42 #42DC94
square
#4742DC #DC428A #D7DC42 #42DC94
split-complementary
#4742DC #DC9442 #8ADC42
monochromatic
#1D1A8A #2823BE #4742DC #7976E6 #ACA9EF

Accessibility & contrast

On white

6.82
#4742DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#4742DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4742DC
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4742DC#FFFFFF#000000##FFFFFF
##4742DC1.006.823.086.82
#FFFFFF6.821.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062E1
Deuteranopia (green-blind)
#0054D9
Tritanopia (blue-blind)
#006C8A
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #4742dc;
/* rgb */ color: rgb(71, 66, 220);
/* oklch */ color: oklch(49.1% 0.225 275.6);
Tailwind
colors: {
  custom: {
    50: '#8d78e8',
    500: '#4742dc',
    950: '#000000',
  },
}
SCSS
$custom: #4742dc;
$custom-light: #8d78e8;
$custom-dark: #000000;
JSON
{
  "hex": "#4742dc",
  "rgb": {
    "r": 71,
    "g": 66,
    "b": 220
  },
  "hsl": {
    "h": 241.948,
    "s": 68.75,
    "l": 56.078
  },
  "oklch": {
    "l": 0.49107,
    "c": 0.22515,
    "h": 275.6
  },
  "luminance": 0.10403
}

Semantic roles & 50–950 ramp

primary
#4742DC
secondary
#DBDD9D
accent
#EC3CE6
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #4742DC

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

Preview Lab → · Contrast checker → · Palette generator →

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