#4F42C8#4F42C8

#4F42C8 is a mid, vivid blue. Relative luminance 0.097; OKLCH L 47.8% C 0.199 H 280.1°. Best body text is #FFFFFF at 7.13:1 contrast (WCAG AA passes).

Color values

HEX#4F42C8
RGBrgb(79, 66, 200)
HSLhsl(246, 55%, 52%)
HSVhsv(246, 67%, 78%)
CMYKcmyk(60.5%, 67%, 0%, 21.6%)
CIE-LABlab(37.35, 43.77, -67.96)
CIE-LCHlch(37.35, 80.84, 302.78°)
OKLaboklab(47.85% 0.035 -0.1958)
OKLCHoklch(47.85% 0.199 280.1)
XYZxyz(15.5947, 9.7277, 55.6882)
Luminance0.0973 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F42C8 #BBC842
analogous
#4278C8 #4F42C8 #9242C8
triadic
#4F42C8 #C84F42 #42C84F
tetradic
#4F42C8 #C84278 #BBC842 #42C892
square
#4F42C8 #C84278 #BBC842 #42C892
split-complementary
#4F42C8 #C89242 #78C842
monochromatic
#28206F #392E9F #4F42C8 #7B71D6 #A7A1E4

Accessibility & contrast

On white

7.13
#4F42C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#4F42C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F42C8
7.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F42C8#FFFFFF#000000##FFFFFF
##4F42C81.007.132.957.13
#FFFFFF7.131.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DCC
Deuteranopia (green-blind)
#0053C5
Tritanopia (blue-blind)
#00657F
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #4f42c8;
/* rgb */ color: rgb(79, 66, 200);
/* oklch */ color: oklch(47.8% 0.199 280.1);
Tailwind
colors: {
  custom: {
    50: '#8d78da',
    500: '#4f42c8',
    950: '#000000',
  },
}
SCSS
$custom: #4f42c8;
$custom-light: #8d78da;
$custom-dark: #000000;
JSON
{
  "hex": "#4f42c8",
  "rgb": {
    "r": 79,
    "g": 66,
    "b": 200
  },
  "hsl": {
    "h": 245.821,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.47845,
    "c": 0.19889,
    "h": 280.1
  },
  "luminance": 0.09729
}

Semantic roles & 50–950 ramp

primary
#4F42C8
secondary
#CAD096
accent
#DE4AD0
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0D0915
muted
#7E7B83

Preview Lab

Preview with #4F42C8

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

Preview Lab → · Contrast checker → · Palette generator →

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