#4F42BC#4F42BC

#4F42BC is a mid, vivid blue. Relative luminance 0.092; OKLCH L 46.8% C 0.184 H 281.4°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#4F42BC
RGBrgb(79, 66, 188)
HSLhsl(246, 48%, 50%)
HSVhsv(246, 65%, 74%)
CMYKcmyk(58%, 64.9%, 0%, 26.3%)
CIE-LABlab(36.34, 39.98, -62.59)
CIE-LCHlch(36.34, 74.26, 302.57°)
OKLaboklab(46.81% 0.0364 -0.18)
OKLCHoklch(46.81% 0.184 281.4)
XYZxyz(14.2469, 9.1886, 48.5900)
Luminance0.0919 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F42BC #AFBC42
analogous
#4272BC #4F42BC #8C42BC
triadic
#4F42BC #BC4F42 #42BC4F
tetradic
#4F42BC #BC4272 #AFBC42 #42BC8C
square
#4F42BC #BC4272 #AFBC42 #42BC8C
split-complementary
#4F42BC #BC8C42 #72BC42
monochromatic
#292261 #3C328F #4F42BC #796FCC #A39CDC

Accessibility & contrast

On white

7.40
#4F42BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#4F42BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F42BC
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F42BC#FFFFFF#000000##FFFFFF
##4F42BC1.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AC0
Deuteranopia (green-blind)
#0051BA
Tritanopia (blue-blind)
#0D6179
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #4f42bc;
/* rgb */ color: rgb(79, 66, 188);
/* oklch */ color: oklch(46.8% 0.184 281.4);
Tailwind
colors: {
  custom: {
    50: '#8b77d1',
    500: '#4f42bc',
    950: '#000000',
  },
}
SCSS
$custom: #4f42bc;
$custom-light: #8b77d1;
$custom-dark: #000000;
JSON
{
  "hex": "#4f42bc",
  "rgb": {
    "r": 79,
    "g": 66,
    "b": 188
  },
  "hsl": {
    "h": 246.393,
    "s": 48.031,
    "l": 49.804
  },
  "oklch": {
    "l": 0.46807,
    "c": 0.18367,
    "h": 281.4
  },
  "luminance": 0.0919
}

Semantic roles & 50–950 ramp

primary
#4F42BC
secondary
#C3C991
accent
#D850C9
background
#F9F7FD
surface
#F1EDFA
border
#CBC8D3
text
#0D0914
muted
#7E7B83

Preview Lab

Preview with #4F42BC

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

Preview Lab → · Contrast checker → · Palette generator →

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