#4742B8#4742B8

#4742B8 is a mid, vivid blue. Relative luminance 0.087; OKLCH L 45.9% C 0.180 H 278.5°. Best body text is #FFFFFF at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#4742B8
RGBrgb(71, 66, 184)
HSLhsl(243, 47%, 49%)
HSVhsv(243, 64%, 72%)
CMYKcmyk(61.4%, 64.1%, 0%, 27.8%)
CIE-LABlab(35.39, 37.39, -61.81)
CIE-LCHlch(35.39, 72.24, 301.17°)
OKLaboklab(45.85% 0.0265 -0.178)
OKLCHoklch(45.85% 0.18 278.5)
XYZxyz(13.1957, 8.6957, 46.3212)
Luminance0.0870 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4742B8 #B3B842
analogous
#4278B8 #4742B8 #8242B8
triadic
#4742B8 #B84742 #42B847
tetradic
#4742B8 #B84278 #B3B842 #42B882
square
#4742B8 #B84278 #B3B842 #42B882
split-complementary
#4742B8 #B88242 #78B842
monochromatic
#24225E #36328B #4742B8 #716DCB #9C9ADB

Accessibility & contrast

On white

7.67
#4742B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#4742B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4742B8
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4742B8#FFFFFF#000000##FFFFFF
##4742B81.007.672.747.67
#FFFFFF7.671.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BC
Deuteranopia (green-blind)
#004EB6
Tritanopia (blue-blind)
#006077
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #4742b8;
/* rgb */ color: rgb(71, 66, 184);
/* oklch */ color: oklch(45.9% 0.180 278.5);
Tailwind
colors: {
  custom: {
    50: '#8677ce',
    500: '#4742b8',
    950: '#000000',
  },
}
SCSS
$custom: #4742b8;
$custom-light: #8677ce;
$custom-dark: #000000;
JSON
{
  "hex": "#4742b8",
  "rgb": {
    "r": 71,
    "g": 66,
    "b": 184
  },
  "hsl": {
    "h": 242.542,
    "s": 47.2,
    "l": 49.02
  },
  "oklch": {
    "l": 0.45853,
    "c": 0.17995,
    "h": 278.5
  },
  "luminance": 0.08697
}

Semantic roles & 50–950 ramp

primary
#4742B8
secondary
#C4C78F
accent
#D751D1
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0C0814
muted
#7D7B82

Preview Lab

Preview with #4742B8

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

Preview Lab → · Contrast checker → · Palette generator →

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