#4F42CC#4F42CC

#4F42CC is a mid, highly saturated blue. Relative luminance 0.099; OKLCH L 48.2% C 0.204 H 279.7°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#4F42CC
RGBrgb(79, 66, 204)
HSLhsl(246, 58%, 53%)
HSVhsv(246, 68%, 80%)
CMYKcmyk(61.3%, 67.6%, 0%, 20%)
CIE-LABlab(37.69, 45.03, -69.72)
CIE-LCHlch(37.69, 83.00, 302.86°)
OKLaboklab(48.2% 0.0345 -0.2009)
OKLCHoklch(48.2% 0.204 279.7)
XYZxyz(16.0683, 9.9171, 58.1825)
Luminance0.0992 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F42CC #BFCC42
analogous
#427ACC #4F42CC #9442CC
triadic
#4F42CC #CC4F42 #42CC4F
tetradic
#4F42CC #CC427A #BFCC42 #42CC94
square
#4F42CC #CC427A #BFCC42 #42CC94
split-complementary
#4F42CC #CC9442 #7ACC42
monochromatic
#271F74 #382CA4 #4F42CC #7C72D9 #A9A2E6

Accessibility & contrast

On white

7.04
#4F42CC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#4F42CC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F42CC
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F42CC#FFFFFF#000000##FFFFFF
##4F42CC1.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED0
Deuteranopia (green-blind)
#0053C9
Tritanopia (blue-blind)
#006682
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #4f42cc;
/* rgb */ color: rgb(79, 66, 204);
/* oklch */ color: oklch(48.2% 0.204 279.7);
Tailwind
colors: {
  custom: {
    50: '#8e78dd',
    500: '#4f42cc',
    950: '#000000',
  },
}
SCSS
$custom: #4f42cc;
$custom-light: #8e78dd;
$custom-dark: #000000;
JSON
{
  "hex": "#4f42cc",
  "rgb": {
    "r": 79,
    "g": 66,
    "b": 204
  },
  "hsl": {
    "h": 245.652,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.48199,
    "c": 0.20388,
    "h": 279.7
  },
  "luminance": 0.09918
}

Semantic roles & 50–950 ramp

primary
#4F42CC
secondary
#CDD397
accent
#E147D2
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #4F42CC

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

Preview Lab → · Contrast checker → · Palette generator →

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