#4F40CF#4F40CF

#4F40CF is a mid, highly saturated blue. Relative luminance 0.098; OKLCH L 48.2% C 0.210 H 279.8°. Best body text is #FFFFFF at 7.08:1 contrast (WCAG AA passes).

Color values

HEX#4F40CF
RGBrgb(79, 64, 207)
HSLhsl(246, 60%, 53%)
HSVhsv(246, 69%, 81%)
CMYKcmyk(61.8%, 69.1%, 0%, 18.8%)
CIE-LABlab(37.54, 47.11, -71.71)
CIE-LCHlch(37.54, 85.80, 303.30°)
OKLaboklab(48.17% 0.0355 -0.2068)
OKLCHoklch(48.17% 0.21 279.8)
XYZxyz(16.3167, 9.8328, 60.0575)
Luminance0.0983 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F40CF #C0CF40
analogous
#4078CF #4F40CF #9740CF
triadic
#4F40CF #CF4F40 #40CF4F
tetradic
#4F40CF #CF4078 #C0CF40 #40CF97
square
#4F40CF #CF4078 #C0CF40 #40CF97
split-complementary
#4F40CF #CF9740 #78CF40
monochromatic
#271E77 #372AA8 #4F40CF #7C71DB #A9A2E8

Accessibility & contrast

On white

7.08
#4F40CF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#4F40CF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F40CF
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F40CF#FFFFFF#000000##FFFFFF
##4F40CF1.007.082.977.08
#FFFFFF7.081.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED3
Deuteranopia (green-blind)
#0053CC
Tritanopia (blue-blind)
#006683
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #4f40cf;
/* rgb */ color: rgb(79, 64, 207);
/* oklch */ color: oklch(48.2% 0.210 279.8);
Tailwind
colors: {
  custom: {
    50: '#8f76df',
    500: '#4f40cf',
    950: '#000000',
  },
}
SCSS
$custom: #4f40cf;
$custom-light: #8f76df;
$custom-dark: #000000;
JSON
{
  "hex": "#4f40cf",
  "rgb": {
    "r": 79,
    "g": 64,
    "b": 207
  },
  "hsl": {
    "h": 246.294,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.4817,
    "c": 0.2098,
    "h": 279.8
  },
  "luminance": 0.09834
}

Semantic roles & 50–950 ramp

primary
#4F40CF
secondary
#CED497
accent
#E345D2
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #4F40CF

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

Preview Lab → · Contrast checker → · Palette generator →

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