#4F40CE#4F40CE

#4F40CE is a mid, highly saturated blue. Relative luminance 0.098; OKLCH L 48.1% C 0.209 H 279.9°. Best body text is #FFFFFF at 7.10:1 contrast (WCAG AA passes).

Color values

HEX#4F40CE
RGBrgb(79, 64, 206)
HSLhsl(246, 59%, 53%)
HSVhsv(246, 69%, 81%)
CMYKcmyk(61.7%, 68.9%, 0%, 19.2%)
CIE-LABlab(37.45, 46.80, -71.28)
CIE-LCHlch(37.45, 85.27, 303.29°)
OKLaboklab(48.08% 0.0357 -0.2055)
OKLCHoklch(48.08% 0.209 279.9)
XYZxyz(16.1949, 9.7841, 59.4157)
Luminance0.0979 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F40CE #BFCE40
analogous
#4078CE #4F40CE #9640CE
triadic
#4F40CE #CE4F40 #40CE4F
tetradic
#4F40CE #CE4078 #BFCE40 #40CE96
square
#4F40CE #CE4078 #BFCE40 #40CE96
split-complementary
#4F40CE #CE9640 #78CE40
monochromatic
#271E75 #382BA6 #4F40CE #7C71DA #A9A1E7

Accessibility & contrast

On white

7.10
#4F40CE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#4F40CE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F40CE
7.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F40CE#FFFFFF#000000##FFFFFF
##4F40CE1.007.102.967.10
#FFFFFF7.101.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DD2
Deuteranopia (green-blind)
#0053CB
Tritanopia (blue-blind)
#006682
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #4f40ce;
/* rgb */ color: rgb(79, 64, 206);
/* oklch */ color: oklch(48.1% 0.209 279.9);
Tailwind
colors: {
  custom: {
    50: '#8e76de',
    500: '#4f40ce',
    950: '#000000',
  },
}
SCSS
$custom: #4f40ce;
$custom-light: #8e76de;
$custom-dark: #000000;
JSON
{
  "hex": "#4f40ce",
  "rgb": {
    "r": 79,
    "g": 64,
    "b": 206
  },
  "hsl": {
    "h": 246.338,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.48079,
    "c": 0.20858,
    "h": 279.9
  },
  "luminance": 0.09785
}

Semantic roles & 50–950 ramp

primary
#4F40CE
secondary
#CDD496
accent
#E245D2
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #4F40CE

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

Preview Lab → · Contrast checker → · Palette generator →

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