#4740BA#4740BA

#4740BA is a mid, vivid blue. Relative luminance 0.086; OKLCH L 45.7% C 0.185 H 278.7°. Best body text is #FFFFFF at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#4740BA
RGBrgb(71, 64, 186)
HSLhsl(243, 49%, 49%)
HSVhsv(243, 66%, 73%)
CMYKcmyk(61.8%, 65.6%, 0%, 27.1%)
CIE-LABlab(35.10, 39.25, -63.46)
CIE-LCHlch(35.10, 74.62, 301.74°)
OKLaboklab(45.7% 0.028 -0.1828)
OKLCHoklch(45.7% 0.185 278.7)
XYZxyz(13.2920, 8.5505, 47.3948)
Luminance0.0855 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4740BA #B3BA40
analogous
#4076BA #4740BA #8440BA
triadic
#4740BA #BA4740 #40BA47
tetradic
#4740BA #BA4076 #B3BA40 #40BA84
square
#4740BA #BA4076 #B3BA40 #40BA84
split-complementary
#4740BA #BA8440 #76BA40
monochromatic
#24215F #36308C #4740BA #716BCC #9C99DC

Accessibility & contrast

On white

7.75
#4740BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#4740BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4740BA
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4740BA#FFFFFF#000000##FFFFFF
##4740BA1.007.752.717.75
#FFFFFF7.751.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BE
Deuteranopia (green-blind)
#004EB8
Tritanopia (blue-blind)
#005F77
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #4740ba;
/* rgb */ color: rgb(71, 64, 186);
/* oklch */ color: oklch(45.7% 0.185 278.7);
Tailwind
colors: {
  custom: {
    50: '#8775d0',
    500: '#4740ba',
    950: '#000000',
  },
}
SCSS
$custom: #4740ba;
$custom-light: #8775d0;
$custom-dark: #000000;
JSON
{
  "hex": "#4740ba",
  "rgb": {
    "r": 71,
    "g": 64,
    "b": 186
  },
  "hsl": {
    "h": 243.443,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.45696,
    "c": 0.18496,
    "h": 278.7
  },
  "luminance": 0.08552
}

Semantic roles & 50–950 ramp

primary
#4740BA
secondary
#C4C88E
accent
#D84FD1
background
#F8F7FC
surface
#F0EDF9
border
#CBC8D2
text
#0C0814
muted
#7D7B82

Preview Lab

Preview with #4740BA

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

Preview Lab → · Contrast checker → · Palette generator →

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