#4F42DC#4F42DC

#4F42DC is a mid, highly saturated blue. Relative luminance 0.107; OKLCH L 49.7% C 0.223 H 278.2°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#4F42DC
RGBrgb(79, 66, 220)
HSLhsl(245, 69%, 56%)
HSVhsv(245, 70%, 86%)
CMYKcmyk(64.1%, 70%, 0%, 13.7%)
CIE-LABlab(39.11, 50.04, -76.61)
CIE-LCHlch(39.11, 91.50, 303.15°)
OKLaboklab(49.65% 0.032 -0.2211)
OKLCHoklch(49.65% 0.223 278.2)
XYZxyz(18.0868, 10.7245, 68.8132)
Luminance0.1073 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F42DC #CFDC42
analogous
#4282DC #4F42DC #9C42DC
triadic
#4F42DC #DC4F42 #42DC4F
tetradic
#4F42DC #DC4282 #CFDC42 #42DC9C
square
#4F42DC #DC4282 #CFDC42 #42DC9C
split-complementary
#4F42DC #DC9C42 #82DC42
monochromatic
#231A8A #3023BE #4F42DC #7F76E6 #AFA9EF

Accessibility & contrast

On white

6.68
#4F42DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#4F42DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4F42DC
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F42DC#FFFFFF#000000##FFFFFF
##4F42DC1.006.683.156.68
#FFFFFF6.681.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062E1
Deuteranopia (green-blind)
#0056D9
Tritanopia (blue-blind)
#006C8A
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #4f42dc;
/* rgb */ color: rgb(79, 66, 220);
/* oklch */ color: oklch(49.7% 0.223 278.2);
Tailwind
colors: {
  custom: {
    50: '#9178e8',
    500: '#4f42dc',
    950: '#000000',
  },
}
SCSS
$custom: #4f42dc;
$custom-light: #9178e8;
$custom-dark: #000000;
JSON
{
  "hex": "#4f42dc",
  "rgb": {
    "r": 79,
    "g": 66,
    "b": 220
  },
  "hsl": {
    "h": 245.065,
    "s": 68.75,
    "l": 56.078
  },
  "oklch": {
    "l": 0.49651,
    "c": 0.22342,
    "h": 278.2
  },
  "luminance": 0.10726
}

Semantic roles & 50–950 ramp

primary
#4F42DC
secondary
#D7DD9D
accent
#EC3CDD
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #4F42DC

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

Preview Lab → · Contrast checker → · Palette generator →

#4F42DC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva