#4742CF#4742CF

#4742CF is a mid, highly saturated blue. Relative luminance 0.097; OKLCH L 47.9% C 0.209 H 276.6°. Best body text is #FFFFFF at 7.12:1 contrast (WCAG AA passes).

Color values

HEX#4742CF
RGBrgb(71, 66, 207)
HSLhsl(242, 59%, 54%)
HSVhsv(242, 68%, 81%)
CMYKcmyk(65.7%, 68.1%, 0%, 18.8%)
CIE-LABlab(37.37, 44.91, -72.01)
CIE-LCHlch(37.37, 84.86, 301.95°)
OKLaboklab(47.9% 0.0239 -0.2079)
OKLCHoklch(47.9% 0.209 276.6)
XYZxyz(15.8056, 9.7397, 60.0664)
Luminance0.0974 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4742CF #CACF42
analogous
#4283CF #4742CF #8D42CF
triadic
#4742CF #CF4742 #42CF47
tetradic
#4742CF #CF4283 #CACF42 #42CF8D
square
#4742CF #CF4283 #CACF42 #42CF8D
split-complementary
#4742CF #CF8D42 #83CF42
monochromatic
#221F78 #2F2BA9 #4742CF #7773DB #A6A4E8

Accessibility & contrast

On white

7.12
#4742CF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#4742CF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4742CF
7.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4742CF#FFFFFF#000000##FFFFFF
##4742CF1.007.122.957.12
#FFFFFF7.121.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED3
Deuteranopia (green-blind)
#0052CC
Tritanopia (blue-blind)
#006883
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #4742cf;
/* rgb */ color: rgb(71, 66, 207);
/* oklch */ color: oklch(47.9% 0.209 276.6);
Tailwind
colors: {
  custom: {
    50: '#8b77df',
    500: '#4742cf',
    950: '#000000',
  },
}
SCSS
$custom: #4742cf;
$custom-light: #8b77df;
$custom-dark: #000000;
JSON
{
  "hex": "#4742cf",
  "rgb": {
    "r": 71,
    "g": 66,
    "b": 207
  },
  "hsl": {
    "h": 242.128,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.47897,
    "c": 0.20925,
    "h": 276.6
  },
  "luminance": 0.09741
}

Semantic roles & 50–950 ramp

primary
#4742CF
secondary
#D2D598
accent
#E345DD
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0D0915
muted
#7E7B83

Preview Lab

Preview with #4742CF

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

Preview Lab → · Contrast checker → · Palette generator →

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