#4F42CF#4F42CF

#4F42CF is a mid, highly saturated blue. Relative luminance 0.101; OKLCH L 48.5% C 0.208 H 279.4°. Best body text is #FFFFFF at 6.97:1 contrast (WCAG AA passes).

Color values

HEX#4F42CF
RGBrgb(79, 66, 207)
HSLhsl(246, 59%, 54%)
HSVhsv(246, 68%, 81%)
CMYKcmyk(61.8%, 68.1%, 0%, 18.8%)
CIE-LABlab(37.95, 45.98, -71.03)
CIE-LCHlch(37.95, 84.61, 302.91°)
OKLaboklab(48.47% 0.034 -0.2048)
OKLCHoklch(48.47% 0.208 279.4)
XYZxyz(16.4316, 10.0624, 60.0957)
Luminance0.1006 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F42CF #C2CF42
analogous
#427BCF #4F42CF #9542CF
triadic
#4F42CF #CF4F42 #42CF4F
tetradic
#4F42CF #CF427B #C2CF42 #42CF95
square
#4F42CF #CF427B #C2CF42 #42CF95
split-complementary
#4F42CF #CF9542 #7BCF42
monochromatic
#271F78 #372BA9 #4F42CF #7C73DB #AAA4E8

Accessibility & contrast

On white

6.97
#4F42CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#4F42CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4F42CF
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F42CF#FFFFFF#000000##FFFFFF
##4F42CF1.006.973.016.97
#FFFFFF6.971.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD3
Deuteranopia (green-blind)
#0054CC
Tritanopia (blue-blind)
#006783
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #4f42cf;
/* rgb */ color: rgb(79, 66, 207);
/* oklch */ color: oklch(48.5% 0.208 279.4);
Tailwind
colors: {
  custom: {
    50: '#8f78df',
    500: '#4f42cf',
    950: '#000000',
  },
}
SCSS
$custom: #4f42cf;
$custom-light: #8f78df;
$custom-dark: #000000;
JSON
{
  "hex": "#4f42cf",
  "rgb": {
    "r": 79,
    "g": 66,
    "b": 207
  },
  "hsl": {
    "h": 245.532,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.48467,
    "c": 0.2076,
    "h": 279.4
  },
  "luminance": 0.10064
}

Semantic roles & 50–950 ramp

primary
#4F42CF
secondary
#CFD598
accent
#E345D4
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #4F42CF

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

Preview Lab → · Contrast checker → · Palette generator →

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