#4F40C8#4F40C8

#4F40C8 is a mid, highly saturated blue. Relative luminance 0.095; OKLCH L 47.5% C 0.201 H 280.5°. Best body text is #FFFFFF at 7.24:1 contrast (WCAG AA passes).

Color values

HEX#4F40C8
RGBrgb(79, 64, 200)
HSLhsl(247, 55%, 52%)
HSVhsv(247, 68%, 78%)
CMYKcmyk(60.5%, 68%, 0%, 21.6%)
CIE-LABlab(36.93, 44.92, -68.65)
CIE-LCHlch(36.93, 82.05, 303.20°)
OKLaboklab(47.54% 0.0366 -0.1978)
OKLCHoklch(47.54% 0.201 280.5)
XYZxyz(15.4799, 9.4981, 55.6500)
Luminance0.0950 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F40C8 #B9C840
analogous
#4075C8 #4F40C8 #9340C8
triadic
#4F40C8 #C84F40 #40C84F
tetradic
#4F40C8 #C84075 #B9C840 #40C893
square
#4F40C8 #C84075 #B9C840 #40C893
split-complementary
#4F40C8 #C89340 #75C840
monochromatic
#28206E #3A2D9D #4F40C8 #7B70D6 #A79FE3

Accessibility & contrast

On white

7.24
#4F40C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#4F40C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F40C8
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F40C8#FFFFFF#000000##FFFFFF
##4F40C81.007.242.907.24
#FFFFFF7.241.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CCC
Deuteranopia (green-blind)
#0052C5
Tritanopia (blue-blind)
#00647F
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #4f40c8;
/* rgb */ color: rgb(79, 64, 200);
/* oklch */ color: oklch(47.5% 0.201 280.5);
Tailwind
colors: {
  custom: {
    50: '#8d76da',
    500: '#4f40c8',
    950: '#000000',
  },
}
SCSS
$custom: #4f40c8;
$custom-light: #8d76da;
$custom-dark: #000000;
JSON
{
  "hex": "#4f40c8",
  "rgb": {
    "r": 79,
    "g": 64,
    "b": 200
  },
  "hsl": {
    "h": 246.618,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.4754,
    "c": 0.20118,
    "h": 280.5
  },
  "luminance": 0.09499
}

Semantic roles & 50–950 ramp

primary
#4F40C8
secondary
#C9D094
accent
#DF49CE
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0D0815
muted
#7E7B83

Preview Lab

Preview with #4F40C8

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

Preview Lab → · Contrast checker → · Palette generator →

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