#4742E1#4742E1

#4742E1 is a mid, highly saturated blue. Relative luminance 0.107; OKLCH L 49.6% C 0.231 H 275.3°. Best body text is #FFFFFF at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#4742E1
RGBrgb(71, 66, 225)
HSLhsl(242, 73%, 57%)
HSVhsv(242, 71%, 88%)
CMYKcmyk(68.4%, 70.7%, 0%, 11.8%)
CIE-LABlab(39.02, 50.68, -79.64)
CIE-LCHlch(39.02, 94.40, 302.47°)
OKLaboklab(49.58% 0.0213 -0.2302)
OKLCHoklch(49.58% 0.231 275.3)
XYZxyz(18.1329, 10.6706, 72.3236)
Luminance0.1067 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4742E1 #DCE142
analogous
#428CE1 #4742E1 #9742E1
triadic
#4742E1 #E14742 #42E147
tetradic
#4742E1 #E1428C #DCE142 #42E197
square
#4742E1 #E1428C #DCE142 #42E197
split-complementary
#4742E1 #E19742 #8CE142
monochromatic
#1B1792 #251FC6 #4742E1 #7A77E9 #AEACF2

Accessibility & contrast

On white

6.70
#4742E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#4742E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4742E1
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4742E1#FFFFFF#000000##FFFFFF
##4742E11.006.703.136.70
#FFFFFF6.701.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063E6
Deuteranopia (green-blind)
#0055DE
Tritanopia (blue-blind)
#006E8D
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #4742e1;
/* rgb */ color: rgb(71, 66, 225);
/* oklch */ color: oklch(49.6% 0.231 275.3);
Tailwind
colors: {
  custom: {
    50: '#8e78ec',
    500: '#4742e1',
    950: '#000000',
  },
}
SCSS
$custom: #4742e1;
$custom-light: #8e78ec;
$custom-dark: #000000;
JSON
{
  "hex": "#4742e1",
  "rgb": {
    "r": 71,
    "g": 66,
    "b": 225
  },
  "hsl": {
    "h": 241.887,
    "s": 72.603,
    "l": 57.059
  },
  "oklch": {
    "l": 0.49581,
    "c": 0.23116,
    "h": 275.3
  },
  "luminance": 0.10672
}

Semantic roles & 50–950 ramp

primary
#4742E1
secondary
#DEE09F
accent
#EF38EA
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #4742E1

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

Preview Lab → · Contrast checker → · Palette generator →

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