#4F42BB#4F42BB

#4F42BB is a mid, vivid blue. Relative luminance 0.091; OKLCH L 46.7% C 0.182 H 281.5°. Best body text is #FFFFFF at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#4F42BB
RGBrgb(79, 66, 187)
HSLhsl(246, 48%, 50%)
HSVhsv(246, 65%, 73%)
CMYKcmyk(57.8%, 64.7%, 0%, 26.7%)
CIE-LABlab(36.26, 39.66, -62.13)
CIE-LCHlch(36.26, 73.71, 302.55°)
OKLaboklab(46.72% 0.0365 -0.1787)
OKLCHoklch(46.72% 0.182 281.5)
XYZxyz(14.1395, 9.1456, 48.0243)
Luminance0.0915 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F42BB #AEBB42
analogous
#4272BB #4F42BB #8B42BB
triadic
#4F42BB #BB4F42 #42BB4F
tetradic
#4F42BB #BB4272 #AEBB42 #42BB8B
square
#4F42BB #BB4272 #AEBB42 #42BB8B
split-complementary
#4F42BB #BB8B42 #72BB42
monochromatic
#292261 #3C328E #4F42BB #786ECC #A29CDC

Accessibility & contrast

On white

7.42
#4F42BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#4F42BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F42BB
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F42BB#FFFFFF#000000##FFFFFF
##4F42BB1.007.422.837.42
#FFFFFF7.421.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ABF
Deuteranopia (green-blind)
#0051B9
Tritanopia (blue-blind)
#106078
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #4f42bb;
/* rgb */ color: rgb(79, 66, 187);
/* oklch */ color: oklch(46.7% 0.182 281.5);
Tailwind
colors: {
  custom: {
    50: '#8b77d0',
    500: '#4f42bb',
    950: '#000000',
  },
}
SCSS
$custom: #4f42bb;
$custom-light: #8b77d0;
$custom-dark: #000000;
JSON
{
  "hex": "#4f42bb",
  "rgb": {
    "r": 79,
    "g": 66,
    "b": 187
  },
  "hsl": {
    "h": 246.446,
    "s": 47.826,
    "l": 49.608
  },
  "oklch": {
    "l": 0.46722,
    "c": 0.18238,
    "h": 281.5
  },
  "luminance": 0.09147
}

Semantic roles & 50–950 ramp

primary
#4F42BB
secondary
#C2C891
accent
#D750C9
background
#F9F7FC
surface
#F1EDF9
border
#CBC8D2
text
#0D0914
muted
#7E7B82

Preview Lab

Preview with #4F42BB

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

Preview Lab → · Contrast checker → · Palette generator →

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