#4F42D3#4F42D3

#4F42D3 is a mid, highly saturated blue. Relative luminance 0.103; OKLCH L 48.8% C 0.213 H 279.1°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#4F42D3
RGBrgb(79, 66, 211)
HSLhsl(245, 62%, 54%)
HSVhsv(245, 69%, 83%)
CMYKcmyk(62.6%, 68.7%, 0%, 17.3%)
CIE-LABlab(38.31, 47.23, -72.76)
CIE-LCHlch(38.31, 86.75, 302.99°)
OKLaboklab(48.83% 0.0334 -0.2099)
OKLCHoklch(48.83% 0.213 279.1)
XYZxyz(16.9268, 10.2605, 62.7039)
Luminance0.1026 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F42D3 #C6D342
analogous
#427ED3 #4F42D3 #9742D3
triadic
#4F42D3 #D34F42 #42D34F
tetradic
#4F42D3 #D3427E #C6D342 #42D397
square
#4F42D3 #D3427E #C6D342 #42D397
split-complementary
#4F42D3 #D39742 #7ED342
monochromatic
#261D7D #3529AF #4F42D3 #7D74DF #ABA5EA

Accessibility & contrast

On white

6.88
#4F42D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#4F42D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4F42D3
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F42D3#FFFFFF#000000##FFFFFF
##4F42D31.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D7
Deuteranopia (green-blind)
#0054D0
Tritanopia (blue-blind)
#006985
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #4f42d3;
/* rgb */ color: rgb(79, 66, 211);
/* oklch */ color: oklch(48.8% 0.213 279.1);
Tailwind
colors: {
  custom: {
    50: '#8f78e2',
    500: '#4f42d3',
    950: '#000000',
  },
}
SCSS
$custom: #4f42d3;
$custom-light: #8f78e2;
$custom-dark: #000000;
JSON
{
  "hex": "#4f42d3",
  "rgb": {
    "r": 79,
    "g": 66,
    "b": 211
  },
  "hsl": {
    "h": 245.379,
    "s": 62.232,
    "l": 54.314
  },
  "oklch": {
    "l": 0.48827,
    "c": 0.21251,
    "h": 279.1
  },
  "luminance": 0.10262
}

Semantic roles & 50–950 ramp

primary
#4F42D3
secondary
#D2D79A
accent
#E542D7
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0E0915
muted
#7E7B84

Preview Lab

Preview with #4F42D3

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

Preview Lab → · Contrast checker → · Palette generator →

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