#4F40DC#4F40DC

#4F40DC is a mid, highly saturated blue. Relative luminance 0.105; OKLCH L 49.4% C 0.226 H 278.5°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#4F40DC
RGBrgb(79, 64, 220)
HSLhsl(246, 69%, 56%)
HSVhsv(246, 71%, 86%)
CMYKcmyk(64.1%, 70.9%, 0%, 13.7%)
CIE-LABlab(38.72, 51.14, -77.26)
CIE-LCHlch(38.72, 92.65, 303.50°)
OKLaboklab(49.37% 0.0333 -0.223)
OKLCHoklch(49.37% 0.226 278.5)
XYZxyz(17.9720, 10.4949, 68.7749)
Luminance0.1050 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F40DC #CDDC40
analogous
#407FDC #4F40DC #9D40DC
triadic
#4F40DC #DC4F40 #40DC4F
tetradic
#4F40DC #DC407F #CDDC40 #40DC9D
square
#4F40DC #DC407F #CDDC40 #40DC9D
split-complementary
#4F40DC #DC9D40 #7FDC40
monochromatic
#241989 #3123BC #4F40DC #7F74E5 #AEA7EF

Accessibility & contrast

On white

6.78
#4F40DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#4F40DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #4F40DC
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F40DC#FFFFFF#000000##FFFFFF
##4F40DC1.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061E1
Deuteranopia (green-blind)
#0055D9
Tritanopia (blue-blind)
#006B8A
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #4f40dc;
/* rgb */ color: rgb(79, 64, 220);
/* oklch */ color: oklch(49.4% 0.226 278.5);
Tailwind
colors: {
  custom: {
    50: '#9177e8',
    500: '#4f40dc',
    950: '#000000',
  },
}
SCSS
$custom: #4f40dc;
$custom-light: #9177e8;
$custom-dark: #000000;
JSON
{
  "hex": "#4f40dc",
  "rgb": {
    "r": 79,
    "g": 64,
    "b": 220
  },
  "hsl": {
    "h": 245.769,
    "s": 69.027,
    "l": 55.686
  },
  "oklch": {
    "l": 0.49368,
    "c": 0.2255,
    "h": 278.5
  },
  "luminance": 0.10496
}

Semantic roles & 50–950 ramp

primary
#4F40DC
secondary
#D6DC9B
accent
#EC3CDB
background
#F9F7FE
surface
#F2EDFD
border
#CCC8D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #4F40DC

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

Preview Lab → · Contrast checker → · Palette generator →

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