#4F42BA#4F42BA

#4F42BA is a mid, vivid blue. Relative luminance 0.091; OKLCH L 46.6% C 0.181 H 281.7°. Best body text is #FFFFFF at 7.44:1 contrast (WCAG AA passes).

Color values

HEX#4F42BA
RGBrgb(79, 66, 186)
HSLhsl(247, 48%, 49%)
HSVhsv(247, 65%, 73%)
CMYKcmyk(57.5%, 64.5%, 0%, 27.1%)
CIE-LABlab(36.18, 39.34, -61.68)
CIE-LCHlch(36.18, 73.16, 302.53°)
OKLaboklab(46.64% 0.0366 -0.1773)
OKLCHoklch(46.64% 0.181 281.7)
XYZxyz(14.0328, 9.1029, 47.4624)
Luminance0.0910 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F42BA #ADBA42
analogous
#4271BA #4F42BA #8B42BA
triadic
#4F42BA #BA4F42 #42BA4F
tetradic
#4F42BA #BA4271 #ADBA42 #42BA8B
square
#4F42BA #BA4271 #ADBA42 #42BA8B
split-complementary
#4F42BA #BA8B42 #71BA42
monochromatic
#292260 #3C328D #4F42BA #786ECB #A29BDB

Accessibility & contrast

On white

7.44
#4F42BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#4F42BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F42BA
7.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F42BA#FFFFFF#000000##FFFFFF
##4F42BA1.007.442.827.44
#FFFFFF7.441.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059BE
Deuteranopia (green-blind)
#0051B8
Tritanopia (blue-blind)
#126078
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #4f42ba;
/* rgb */ color: rgb(79, 66, 186);
/* oklch */ color: oklch(46.6% 0.181 281.7);
Tailwind
colors: {
  custom: {
    50: '#8b77d0',
    500: '#4f42ba',
    950: '#000000',
  },
}
SCSS
$custom: #4f42ba;
$custom-light: #8b77d0;
$custom-dark: #000000;
JSON
{
  "hex": "#4f42ba",
  "rgb": {
    "r": 79,
    "g": 66,
    "b": 186
  },
  "hsl": {
    "h": 246.5,
    "s": 47.619,
    "l": 49.412
  },
  "oklch": {
    "l": 0.46638,
    "c": 0.18109,
    "h": 281.7
  },
  "luminance": 0.09104
}

Semantic roles & 50–950 ramp

primary
#4F42BA
secondary
#C2C890
accent
#D751C9
background
#F9F7FC
surface
#F1EDF9
border
#CBC8D2
text
#0D0914
muted
#7E7B82

Preview Lab

Preview with #4F42BA

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

Preview Lab → · Contrast checker → · Palette generator →

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