#4F40C7#4F40C7

#4F40C7 is a mid, vivid blue. Relative luminance 0.095; OKLCH L 47.5% C 0.200 H 280.6°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#4F40C7
RGBrgb(79, 64, 199)
HSLhsl(247, 55%, 52%)
HSVhsv(247, 68%, 78%)
CMYKcmyk(60.3%, 67.8%, 0%, 22%)
CIE-LABlab(36.84, 44.61, -68.21)
CIE-LCHlch(36.84, 81.51, 303.18°)
OKLaboklab(47.45% 0.0367 -0.1965)
OKLCHoklch(47.45% 0.2 280.6)
XYZxyz(15.3634, 9.4515, 55.0365)
Luminance0.0945 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F40C7 #B8C740
analogous
#4075C7 #4F40C7 #9340C7
triadic
#4F40C7 #C74F40 #40C74F
tetradic
#4F40C7 #C74075 #B8C740 #40C793
square
#4F40C7 #C74075 #B8C740 #40C793
split-complementary
#4F40C7 #C79340 #75C740
monochromatic
#28206D #3A2E9C #4F40C7 #7B6FD5 #A69FE3

Accessibility & contrast

On white

7.26
#4F40C7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#4F40C7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F40C7
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F40C7#FFFFFF#000000##FFFFFF
##4F40C71.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CCB
Deuteranopia (green-blind)
#0052C4
Tritanopia (blue-blind)
#00637E
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #4f40c7;
/* rgb */ color: rgb(79, 64, 199);
/* oklch */ color: oklch(47.5% 0.200 280.6);
Tailwind
colors: {
  custom: {
    50: '#8d76d9',
    500: '#4f40c7',
    950: '#000000',
  },
}
SCSS
$custom: #4f40c7;
$custom-light: #8d76d9;
$custom-dark: #000000;
JSON
{
  "hex": "#4f40c7",
  "rgb": {
    "r": 79,
    "g": 64,
    "b": 199
  },
  "hsl": {
    "h": 246.667,
    "s": 54.656,
    "l": 51.569
  },
  "oklch": {
    "l": 0.47451,
    "c": 0.19993,
    "h": 280.6
  },
  "luminance": 0.09453
}

Semantic roles & 50–950 ramp

primary
#4F40C7
secondary
#C8CF94
accent
#DE4ACE
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4F40C7

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

Preview Lab → · Contrast checker → · Palette generator →

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