#4740D4#4740D4

#4740D4 is a mid, highly saturated blue. Relative luminance 0.098; OKLCH L 48.1% C 0.218 H 276.5°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#4740D4
RGBrgb(71, 64, 212)
HSLhsl(243, 63%, 54%)
HSVhsv(243, 70%, 83%)
CMYKcmyk(66.5%, 69.8%, 0%, 16.9%)
CIE-LABlab(37.41, 47.66, -74.84)
CIE-LCHlch(37.41, 88.73, 302.49°)
OKLaboklab(48.06% 0.0246 -0.2161)
OKLCHoklch(48.06% 0.218 276.5)
XYZxyz(16.3117, 9.7584, 63.2985)
Luminance0.0976 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4740D4 #CDD440
analogous
#4083D4 #4740D4 #9140D4
triadic
#4740D4 #D44740 #40D447
tetradic
#4740D4 #D44083 #CDD440 #40D491
square
#4740D4 #D44083 #CDD440 #40D491
split-complementary
#4740D4 #D49140 #83D440
monochromatic
#211C7D #2E27AF #4740D4 #7772DF #A7A4EA

Accessibility & contrast

On white

7.11
#4740D4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#4740D4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4740D4
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4740D4#FFFFFF#000000##FFFFFF
##4740D41.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED8
Deuteranopia (green-blind)
#0052D1
Tritanopia (blue-blind)
#006985
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #4740d4;
/* rgb */ color: rgb(71, 64, 212);
/* oklch */ color: oklch(48.1% 0.218 276.5);
Tailwind
colors: {
  custom: {
    50: '#8c76e2',
    500: '#4740d4',
    950: '#000000',
  },
}
SCSS
$custom: #4740d4;
$custom-light: #8c76e2;
$custom-dark: #000000;
JSON
{
  "hex": "#4740d4",
  "rgb": {
    "r": 71,
    "g": 64,
    "b": 212
  },
  "hsl": {
    "h": 242.838,
    "s": 63.248,
    "l": 54.118
  },
  "oklch": {
    "l": 0.4806,
    "c": 0.21754,
    "h": 276.5
  },
  "luminance": 0.0976
}

Semantic roles & 50–950 ramp

primary
#4740D4
secondary
#D4D798
accent
#E642DE
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #4740D4

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

Preview Lab → · Contrast checker → · Palette generator →

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