#4F42E2#4F42E2

#4F42E2 is a mid, highly saturated blue. Relative luminance 0.111; OKLCH L 50.2% C 0.231 H 277.7°. Best body text is #FFFFFF at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#4F42E2
RGBrgb(79, 66, 226)
HSLhsl(245, 73%, 57%)
HSVhsv(245, 71%, 89%)
CMYKcmyk(65%, 70.8%, 0%, 11.4%)
CIE-LABlab(39.66, 51.90, -79.14)
CIE-LCHlch(39.66, 94.64, 303.26°)
OKLaboklab(50.21% 0.031 -0.2285)
OKLCHoklch(50.21% 0.231 277.7)
XYZxyz(18.8957, 11.0481, 73.0735)
Luminance0.1105 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F42E2 #D5E242
analogous
#4285E2 #4F42E2 #9F42E2
triadic
#4F42E2 #E24F42 #42E24F
tetradic
#4F42E2 #E24285 #D5E242 #42E29F
square
#4F42E2 #E24285 #D5E242 #42E29F
split-complementary
#4F42E2 #E29F42 #85E242
monochromatic
#211793 #2C1FC8 #4F42E2 #8077EA #B2ACF2

Accessibility & contrast

On white

6.54
#4F42E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#4F42E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4F42E2
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F42E2#FFFFFF#000000##FFFFFF
##4F42E21.006.543.216.54
#FFFFFF6.541.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064E7
Deuteranopia (green-blind)
#0057DF
Tritanopia (blue-blind)
#006E8E
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #4f42e2;
/* rgb */ color: rgb(79, 66, 226);
/* oklch */ color: oklch(50.2% 0.231 277.7);
Tailwind
colors: {
  custom: {
    50: '#9278ec',
    500: '#4f42e2',
    950: '#000000',
  },
}
SCSS
$custom: #4f42e2;
$custom-light: #9278ec;
$custom-dark: #000000;
JSON
{
  "hex": "#4f42e2",
  "rgb": {
    "r": 79,
    "g": 66,
    "b": 226
  },
  "hsl": {
    "h": 244.875,
    "s": 73.394,
    "l": 57.255
  },
  "oklch": {
    "l": 0.50209,
    "c": 0.23059,
    "h": 277.7
  },
  "luminance": 0.1105
}

Semantic roles & 50–950 ramp

primary
#4F42E2
secondary
#DBE09F
accent
#F038E1
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0F0916
muted
#7E7B84

Preview Lab

Preview with #4F42E2

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

Preview Lab → · Contrast checker → · Palette generator →

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