#4742CB#4742CB

#4742CB is a mid, highly saturated blue. Relative luminance 0.095; OKLCH L 47.5% C 0.204 H 276.9°. Best body text is #FFFFFF at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#4742CB
RGBrgb(71, 66, 203)
HSLhsl(242, 57%, 53%)
HSVhsv(242, 67%, 80%)
CMYKcmyk(65%, 67.5%, 0%, 20.4%)
CIE-LABlab(37.02, 43.61, -70.27)
CIE-LCHlch(37.02, 82.71, 301.82°)
OKLaboklab(47.53% 0.0245 -0.2028)
OKLCHoklch(47.53% 0.204 276.9)
XYZxyz(15.3227, 9.5465, 57.5235)
Luminance0.0955 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4742CB #C6CB42
analogous
#4281CB #4742CB #8C42CB
triadic
#4742CB #CB4742 #42CB47
tetradic
#4742CB #CB4281 #C6CB42 #42CB8C
square
#4742CB #CB4281 #C6CB42 #42CB8C
split-complementary
#4742CB #CB8C42 #81CB42
monochromatic
#232073 #312DA3 #4742CB #7672D8 #A4A2E5

Accessibility & contrast

On white

7.22
#4742CB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#4742CB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4742CB
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4742CB#FFFFFF#000000##FFFFFF
##4742CB1.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DCF
Deuteranopia (green-blind)
#0051C8
Tritanopia (blue-blind)
#006681
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #4742cb;
/* rgb */ color: rgb(71, 66, 203);
/* oklch */ color: oklch(47.5% 0.204 276.9);
Tailwind
colors: {
  custom: {
    50: '#8a77dc',
    500: '#4742cb',
    950: '#000000',
  },
}
SCSS
$custom: #4742cb;
$custom-light: #8a77dc;
$custom-dark: #000000;
JSON
{
  "hex": "#4742cb",
  "rgb": {
    "r": 71,
    "g": 66,
    "b": 203
  },
  "hsl": {
    "h": 242.19,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.47533,
    "c": 0.20426,
    "h": 276.9
  },
  "luminance": 0.09548
}

Semantic roles & 50–950 ramp

primary
#4742CB
secondary
#D0D297
accent
#E048DB
background
#F9F7FD
surface
#F1EDFB
border
#CBC8D4
text
#0D0915
muted
#7E7B83

Preview Lab

Preview with #4742CB

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

Preview Lab → · Contrast checker → · Palette generator →

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