#4F42D2#4F42D2

#4F42D2 is a mid, highly saturated blue. Relative luminance 0.102; OKLCH L 48.7% C 0.211 H 279.1°. Best body text is #FFFFFF at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#4F42D2
RGBrgb(79, 66, 210)
HSLhsl(245, 62%, 54%)
HSVhsv(245, 69%, 82%)
CMYKcmyk(62.4%, 68.6%, 0%, 17.6%)
CIE-LABlab(38.22, 46.92, -72.33)
CIE-LCHlch(38.22, 86.22, 302.97°)
OKLaboklab(48.74% 0.0336 -0.2086)
OKLCHoklch(48.74% 0.211 279.1)
XYZxyz(16.8018, 10.2105, 62.0457)
Luminance0.1021 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F42D2 #C5D242
analogous
#427DD2 #4F42D2 #9742D2
triadic
#4F42D2 #D24F42 #42D24F
tetradic
#4F42D2 #D2427D #C5D242 #42D297
square
#4F42D2 #D2427D #C5D242 #42D297
split-complementary
#4F42D2 #D29742 #7DD242
monochromatic
#261E7C #3529AD #4F42D2 #7D73DE #ABA5EA

Accessibility & contrast

On white

6.90
#4F42D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#4F42D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4F42D2
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F42D2#FFFFFF#000000##FFFFFF
##4F42D21.006.903.046.90
#FFFFFF6.901.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D6
Deuteranopia (green-blind)
#0054CF
Tritanopia (blue-blind)
#006885
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #4f42d2;
/* rgb */ color: rgb(79, 66, 210);
/* oklch */ color: oklch(48.7% 0.211 279.1);
Tailwind
colors: {
  custom: {
    50: '#8f78e1',
    500: '#4f42d2',
    950: '#000000',
  },
}
SCSS
$custom: #4f42d2;
$custom-light: #8f78e1;
$custom-dark: #000000;
JSON
{
  "hex": "#4f42d2",
  "rgb": {
    "r": 79,
    "g": 66,
    "b": 210
  },
  "hsl": {
    "h": 245.417,
    "s": 61.538,
    "l": 54.118
  },
  "oklch": {
    "l": 0.48737,
    "c": 0.21129,
    "h": 279.1
  },
  "luminance": 0.10212
}

Semantic roles & 50–950 ramp

primary
#4F42D2
secondary
#D1D799
accent
#E543D6
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #4F42D2

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

Preview Lab → · Contrast checker → · Palette generator →

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