#4742BF#4742BF

#4742BF is a mid, vivid blue. Relative luminance 0.090; OKLCH L 46.5% C 0.189 H 277.9°. Best body text is #FFFFFF at 7.50:1 contrast (WCAG AA passes).

Color values

HEX#4742BF
RGBrgb(71, 66, 191)
HSLhsl(242, 49%, 50%)
HSVhsv(242, 65%, 75%)
CMYKcmyk(62.8%, 65.4%, 0%, 25.1%)
CIE-LABlab(35.98, 39.69, -64.97)
CIE-LCHlch(35.98, 76.14, 301.42°)
OKLaboklab(46.46% 0.0258 -0.1873)
OKLCHoklch(46.46% 0.189 277.9)
XYZxyz(13.9477, 8.9965, 50.2816)
Luminance0.0900 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4742BF #BABF42
analogous
#427BBF #4742BF #8542BF
triadic
#4742BF #BF4742 #42BF47
tetradic
#4742BF #BF427B #BABF42 #42BF85
square
#4742BF #BF427B #BABF42 #42BF85
split-complementary
#4742BF #BF8542 #7BBF42
monochromatic
#252265 #353292 #4742BF #7470CE #A09DDE

Accessibility & contrast

On white

7.50
#4742BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#4742BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4742BF
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4742BF#FFFFFF#000000##FFFFFF
##4742BF1.007.502.807.50
#FFFFFF7.501.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC3
Deuteranopia (green-blind)
#004FBD
Tritanopia (blue-blind)
#00627A
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #4742bf;
/* rgb */ color: rgb(71, 66, 191);
/* oklch */ color: oklch(46.5% 0.189 277.9);
Tailwind
colors: {
  custom: {
    50: '#8877d3',
    500: '#4742bf',
    950: '#000000',
  },
}
SCSS
$custom: #4742bf;
$custom-light: #8877d3;
$custom-dark: #000000;
JSON
{
  "hex": "#4742bf",
  "rgb": {
    "r": 71,
    "g": 66,
    "b": 191
  },
  "hsl": {
    "h": 242.4,
    "s": 49.407,
    "l": 50.392
  },
  "oklch": {
    "l": 0.46461,
    "c": 0.18903,
    "h": 277.9
  },
  "luminance": 0.08998
}

Semantic roles & 50–950 ramp

primary
#4742BF
secondary
#C8CA93
accent
#D94FD3
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0D0914
muted
#7D7B83

Preview Lab

Preview with #4742BF

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

Preview Lab → · Contrast checker → · Palette generator →

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