#4742DF#4742DF

#4742DF is a mid, highly saturated blue. Relative luminance 0.106; OKLCH L 49.4% C 0.229 H 275.4°. Best body text is #FFFFFF at 6.75:1 contrast (WCAG AA passes).

Color values

HEX#4742DF
RGBrgb(71, 66, 223)
HSLhsl(242, 71%, 57%)
HSVhsv(242, 70%, 87%)
CMYKcmyk(68.2%, 70.4%, 0%, 12.5%)
CIE-LABlab(38.83, 50.05, -78.81)
CIE-LCHlch(38.83, 93.35, 302.42°)
OKLaboklab(49.39% 0.0216 -0.2277)
OKLCHoklch(49.39% 0.229 275.4)
XYZxyz(17.8616, 10.5621, 70.8951)
Luminance0.1056 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4742DF #DADF42
analogous
#428CDF #4742DF #9642DF
triadic
#4742DF #DF4742 #42DF47
tetradic
#4742DF #DF428C #DADF42 #42DF96
square
#4742DF #DF428C #DADF42 #42DF96
split-complementary
#4742DF #DF9642 #8CDF42
monochromatic
#1C188E #2621C3 #4742DF #7A76E8 #ADABF1

Accessibility & contrast

On white

6.75
#4742DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#4742DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4742DF
6.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4742DF#FFFFFF#000000##FFFFFF
##4742DF1.006.753.116.75
#FFFFFF6.751.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062E4
Deuteranopia (green-blind)
#0054DC
Tritanopia (blue-blind)
#006E8C
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #4742df;
/* rgb */ color: rgb(71, 66, 223);
/* oklch */ color: oklch(49.4% 0.229 275.4);
Tailwind
colors: {
  custom: {
    50: '#8e78ea',
    500: '#4742df',
    950: '#000000',
  },
}
SCSS
$custom: #4742df;
$custom-light: #8e78ea;
$custom-dark: #000000;
JSON
{
  "hex": "#4742df",
  "rgb": {
    "r": 71,
    "g": 66,
    "b": 223
  },
  "hsl": {
    "h": 241.911,
    "s": 71.041,
    "l": 56.667
  },
  "oklch": {
    "l": 0.49391,
    "c": 0.22876,
    "h": 275.4
  },
  "luminance": 0.10564
}

Semantic roles & 50–950 ramp

primary
#4742DF
secondary
#DCDF9E
accent
#EE3AE8
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #4742DF

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

Preview Lab → · Contrast checker → · Palette generator →

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