#4740B2#4740B2

#4740B2 is a mid, vivid blue. Relative luminance 0.082; OKLCH L 45.0% C 0.175 H 279.5°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#4740B2
RGBrgb(71, 64, 178)
HSLhsl(244, 47%, 47%)
HSVhsv(244, 64%, 70%)
CMYKcmyk(60.1%, 64%, 0%, 30.2%)
CIE-LABlab(34.44, 36.63, -59.82)
CIE-LCHlch(34.44, 70.15, 301.48°)
OKLaboklab(45% 0.0288 -0.1721)
OKLCHoklch(45% 0.175 279.5)
XYZxyz(12.4653, 8.2198, 43.0406)
Luminance0.0822 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4740B2 #ABB240
analogous
#4072B2 #4740B2 #8040B2
triadic
#4740B2 #B24740 #40B247
tetradic
#4740B2 #B24072 #ABB240 #40B280
square
#4740B2 #B24072 #ABB240 #40B280
split-complementary
#4740B2 #B28040 #72B240
monochromatic
#232058 #353085 #4740B2 #6D67C8 #9894D8

Accessibility & contrast

On white

7.94
#4740B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#4740B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4740B2
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4740B2#FFFFFF#000000##FFFFFF
##4740B21.007.942.647.94
#FFFFFF7.941.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B6
Deuteranopia (green-blind)
#004CB0
Tritanopia (blue-blind)
#005D73
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #4740b2;
/* rgb */ color: rgb(71, 64, 178);
/* oklch */ color: oklch(45.0% 0.175 279.5);
Tailwind
colors: {
  custom: {
    50: '#8575ca',
    500: '#4740b2',
    950: '#000000',
  },
}
SCSS
$custom: #4740b2;
$custom-light: #8575ca;
$custom-dark: #000000;
JSON
{
  "hex": "#4740b2",
  "rgb": {
    "r": 71,
    "g": 64,
    "b": 178
  },
  "hsl": {
    "h": 243.684,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.45003,
    "c": 0.17454,
    "h": 279.5
  },
  "luminance": 0.08221
}

Semantic roles & 50–950 ramp

primary
#4740B2
secondary
#C0C48A
accent
#D751CF
background
#F8F7FC
surface
#F0EDF8
border
#CBC8D1
text
#0C0813
muted
#7D7B82

Preview Lab

Preview with #4740B2

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

Preview Lab → · Contrast checker → · Palette generator →

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