#4742CD#4742CD

#4742CD is a mid, highly saturated blue. Relative luminance 0.096; OKLCH L 47.7% C 0.207 H 276.7°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#4742CD
RGBrgb(71, 66, 205)
HSLhsl(242, 58%, 53%)
HSVhsv(242, 68%, 80%)
CMYKcmyk(65.4%, 67.8%, 0%, 19.6%)
CIE-LABlab(37.19, 44.26, -71.14)
CIE-LCHlch(37.19, 83.79, 301.89°)
OKLaboklab(47.72% 0.0242 -0.2053)
OKLCHoklch(47.72% 0.207 276.7)
XYZxyz(15.5626, 9.6425, 58.7868)
Luminance0.0964 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4742CD #C8CD42
analogous
#4282CD #4742CD #8C42CD
triadic
#4742CD #CD4742 #42CD47
tetradic
#4742CD #CD4282 #C8CD42 #42CD8C
square
#4742CD #CD4282 #C8CD42 #42CD8C
split-complementary
#4742CD #CD8C42 #82CD42
monochromatic
#221F76 #302CA6 #4742CD #7672DA #A5A3E7

Accessibility & contrast

On white

7.17
#4742CD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#4742CD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4742CD
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4742CD#FFFFFF#000000##FFFFFF
##4742CD1.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DD1
Deuteranopia (green-blind)
#0051CA
Tritanopia (blue-blind)
#006782
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #4742cd;
/* rgb */ color: rgb(71, 66, 205);
/* oklch */ color: oklch(47.7% 0.207 276.7);
Tailwind
colors: {
  custom: {
    50: '#8a77dd',
    500: '#4742cd',
    950: '#000000',
  },
}
SCSS
$custom: #4742cd;
$custom-light: #8a77dd;
$custom-dark: #000000;
JSON
{
  "hex": "#4742cd",
  "rgb": {
    "r": 71,
    "g": 66,
    "b": 205
  },
  "hsl": {
    "h": 242.158,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.47715,
    "c": 0.20676,
    "h": 276.7
  },
  "luminance": 0.09644
}

Semantic roles & 50–950 ramp

primary
#4742CD
secondary
#D1D397
accent
#E146DC
background
#F9F7FD
surface
#F1EDFB
border
#CBC8D4
text
#0D0915
muted
#7E7B83

Preview Lab

Preview with #4742CD

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

Preview Lab → · Contrast checker → · Palette generator →

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