#4F42CA#4F42CA

#4F42CA is a mid, highly saturated blue. Relative luminance 0.098; OKLCH L 48.0% C 0.201 H 279.9°. Best body text is #FFFFFF at 7.08:1 contrast (WCAG AA passes).

Color values

HEX#4F42CA
RGBrgb(79, 66, 202)
HSLhsl(246, 56%, 53%)
HSVhsv(246, 67%, 79%)
CMYKcmyk(60.9%, 67.3%, 0%, 20.8%)
CIE-LABlab(37.52, 44.40, -68.84)
CIE-LCHlch(37.52, 81.92, 302.82°)
OKLaboklab(48.02% 0.0347 -0.1984)
OKLCHoklch(48.02% 0.201 279.9)
XYZxyz(15.8300, 9.8218, 56.9273)
Luminance0.0982 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F42CA #BDCA42
analogous
#4279CA #4F42CA #9342CA
triadic
#4F42CA #CA4F42 #42CA4F
tetradic
#4F42CA #CA4279 #BDCA42 #42CA93
square
#4F42CA #CA4279 #BDCA42 #42CA93
split-complementary
#4F42CA #CA9342 #79CA42
monochromatic
#282072 #382DA2 #4F42CA #7C72D7 #A8A2E5

Accessibility & contrast

On white

7.08
#4F42CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#4F42CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F42CA
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F42CA#FFFFFF#000000##FFFFFF
##4F42CA1.007.082.967.08
#FFFFFF7.081.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DCE
Deuteranopia (green-blind)
#0053C7
Tritanopia (blue-blind)
#006680
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #4f42ca;
/* rgb */ color: rgb(79, 66, 202);
/* oklch */ color: oklch(48.0% 0.201 279.9);
Tailwind
colors: {
  custom: {
    50: '#8e78db',
    500: '#4f42ca',
    950: '#000000',
  },
}
SCSS
$custom: #4f42ca;
$custom-light: #8e78db;
$custom-dark: #000000;
JSON
{
  "hex": "#4f42ca",
  "rgb": {
    "r": 79,
    "g": 66,
    "b": 202
  },
  "hsl": {
    "h": 245.735,
    "s": 56.198,
    "l": 52.549
  },
  "oklch": {
    "l": 0.48021,
    "c": 0.2014,
    "h": 279.9
  },
  "luminance": 0.09823
}

Semantic roles & 50–950 ramp

primary
#4F42CA
secondary
#CCD196
accent
#DF48D1
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #4F42CA

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

Preview Lab → · Contrast checker → · Palette generator →

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