#4F42CD#4F42CD

#4F42CD is a mid, highly saturated blue. Relative luminance 0.100; OKLCH L 48.3% C 0.205 H 279.6°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#4F42CD
RGBrgb(79, 66, 205)
HSLhsl(246, 58%, 53%)
HSVhsv(246, 68%, 80%)
CMYKcmyk(61.5%, 67.8%, 0%, 19.6%)
CIE-LABlab(37.78, 45.35, -70.16)
CIE-LCHlch(37.78, 83.54, 302.88°)
OKLaboklab(48.29% 0.0343 -0.2022)
OKLCHoklch(48.29% 0.205 279.6)
XYZxyz(16.1886, 9.9653, 58.8162)
Luminance0.0997 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F42CD #C0CD42
analogous
#427ACD #4F42CD #9542CD
triadic
#4F42CD #CD4F42 #42CD4F
tetradic
#4F42CD #CD427A #C0CD42 #42CD95
square
#4F42CD #CD427A #C0CD42 #42CD95
split-complementary
#4F42CD #CD9542 #7ACD42
monochromatic
#271F76 #372CA6 #4F42CD #7C72DA #A9A3E7

Accessibility & contrast

On white

7.02
#4F42CD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#4F42CD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F42CD
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F42CD#FFFFFF#000000##FFFFFF
##4F42CD1.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED1
Deuteranopia (green-blind)
#0053CA
Tritanopia (blue-blind)
#006782
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #4f42cd;
/* rgb */ color: rgb(79, 66, 205);
/* oklch */ color: oklch(48.3% 0.205 279.6);
Tailwind
colors: {
  custom: {
    50: '#8e78dd',
    500: '#4f42cd',
    950: '#000000',
  },
}
SCSS
$custom: #4f42cd;
$custom-light: #8e78dd;
$custom-dark: #000000;
JSON
{
  "hex": "#4f42cd",
  "rgb": {
    "r": 79,
    "g": 66,
    "b": 205
  },
  "hsl": {
    "h": 245.612,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.48288,
    "c": 0.20512,
    "h": 279.6
  },
  "luminance": 0.09966
}

Semantic roles & 50–950 ramp

primary
#4F42CD
secondary
#CED397
accent
#E146D3
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #4F42CD

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

Preview Lab → · Contrast checker → · Palette generator →

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