#4742BA#4742BA

#4742BA is a mid, vivid blue. Relative luminance 0.088; OKLCH L 46.0% C 0.183 H 278.3°. Best body text is #FFFFFF at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#4742BA
RGBrgb(71, 66, 186)
HSLhsl(243, 48%, 49%)
HSVhsv(243, 65%, 73%)
CMYKcmyk(61.8%, 64.5%, 0%, 27.1%)
CIE-LABlab(35.56, 38.04, -62.72)
CIE-LCHlch(35.56, 73.36, 301.24°)
OKLaboklab(46.03% 0.0263 -0.1806)
OKLCHoklch(46.03% 0.183 278.3)
XYZxyz(13.4068, 8.7802, 47.4331)
Luminance0.0878 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4742BA #B5BA42
analogous
#4279BA #4742BA #8342BA
triadic
#4742BA #BA4742 #42BA47
tetradic
#4742BA #BA4279 #B5BA42 #42BA83
square
#4742BA #BA4279 #B5BA42 #42BA83
split-complementary
#4742BA #BA8342 #79BA42
monochromatic
#252260 #36328D #4742BA #726ECB #9E9BDB

Accessibility & contrast

On white

7.62
#4742BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#4742BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4742BA
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4742BA#FFFFFF#000000##FFFFFF
##4742BA1.007.622.767.62
#FFFFFF7.621.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059BE
Deuteranopia (green-blind)
#004FB8
Tritanopia (blue-blind)
#006078
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #4742ba;
/* rgb */ color: rgb(71, 66, 186);
/* oklch */ color: oklch(46.0% 0.183 278.3);
Tailwind
colors: {
  custom: {
    50: '#8777d0',
    500: '#4742ba',
    950: '#000000',
  },
}
SCSS
$custom: #4742ba;
$custom-light: #8777d0;
$custom-dark: #000000;
JSON
{
  "hex": "#4742ba",
  "rgb": {
    "r": 71,
    "g": 66,
    "b": 186
  },
  "hsl": {
    "h": 242.5,
    "s": 47.619,
    "l": 49.412
  },
  "oklch": {
    "l": 0.46026,
    "c": 0.18256,
    "h": 278.3
  },
  "luminance": 0.08781
}

Semantic roles & 50–950 ramp

primary
#4742BA
secondary
#C5C890
accent
#D751D2
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0C0814
muted
#7D7B82

Preview Lab

Preview with #4742BA

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

Preview Lab → · Contrast checker → · Palette generator →

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