#4F42DB#4F42DB

#4F42DB is a mid, highly saturated blue. Relative luminance 0.107; OKLCH L 49.6% C 0.222 H 278.3°. Best body text is #FFFFFF at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#4F42DB
RGBrgb(79, 66, 219)
HSLhsl(245, 68%, 56%)
HSVhsv(245, 70%, 86%)
CMYKcmyk(63.9%, 69.9%, 0%, 14.1%)
CIE-LABlab(39.02, 49.73, -76.19)
CIE-LCHlch(39.02, 90.98, 303.13°)
OKLaboklab(49.56% 0.0322 -0.2199)
OKLCHoklch(49.56% 0.222 278.3)
XYZxyz(17.9547, 10.6717, 68.1178)
Luminance0.1067 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F42DB #CEDB42
analogous
#4281DB #4F42DB #9B42DB
triadic
#4F42DB #DB4F42 #42DB4F
tetradic
#4F42DB #DB4281 #CEDB42 #42DB9B
square
#4F42DB #DB4281 #CEDB42 #42DB9B
split-complementary
#4F42DB #DB9B42 #81DB42
monochromatic
#231A89 #3124BC #4F42DB #7F75E5 #AFA9EF

Accessibility & contrast

On white

6.70
#4F42DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#4F42DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4F42DB
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F42DB#FFFFFF#000000##FFFFFF
##4F42DB1.006.703.136.70
#FFFFFF6.701.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062E0
Deuteranopia (green-blind)
#0056D8
Tritanopia (blue-blind)
#006C8A
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #4f42db;
/* rgb */ color: rgb(79, 66, 219);
/* oklch */ color: oklch(49.6% 0.222 278.3);
Tailwind
colors: {
  custom: {
    50: '#9178e7',
    500: '#4f42db',
    950: '#000000',
  },
}
SCSS
$custom: #4f42db;
$custom-light: #9178e7;
$custom-dark: #000000;
JSON
{
  "hex": "#4f42db",
  "rgb": {
    "r": 79,
    "g": 66,
    "b": 219
  },
  "hsl": {
    "h": 245.098,
    "s": 68,
    "l": 55.882
  },
  "oklch": {
    "l": 0.49558,
    "c": 0.22222,
    "h": 278.3
  },
  "luminance": 0.10673
}

Semantic roles & 50–950 ramp

primary
#4F42DB
secondary
#D7DC9D
accent
#EB3DDC
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #4F42DB

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

Preview Lab → · Contrast checker → · Palette generator →

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