#4F38C7#4F38C7

#4F38C7 is a mid, highly saturated blue. Relative luminance 0.086; OKLCH L 46.3% C 0.209 H 281.9°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#4F38C7
RGBrgb(79, 56, 199)
HSLhsl(250, 56%, 50%)
HSVhsv(250, 72%, 78%)
CMYKcmyk(60.3%, 71.9%, 0%, 22%)
CIE-LABlab(35.23, 49.05, -70.86)
CIE-LCHlch(35.23, 86.18, 304.69°)
OKLaboklab(46.3% 0.0429 -0.2042)
OKLCHoklch(46.3% 0.209 281.9)
XYZxyz(14.9442, 8.6131, 54.8968)
Luminance0.0861 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F38C7 #B0C738
analogous
#3869C7 #4F38C7 #9638C7
triadic
#4F38C7 #C74F38 #38C74F
tetradic
#4F38C7 #C73869 #B0C738 #38C796
square
#4F38C7 #C73869 #B0C738 #38C796
split-complementary
#4F38C7 #C79638 #69C738
monochromatic
#291D67 #3C2B97 #4F38C7 #7968D4 #A398E2

Accessibility & contrast

On white

7.71
#4F38C7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#4F38C7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F38C7
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F38C7#FFFFFF#000000##FFFFFF
##4F38C71.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058CB
Deuteranopia (green-blind)
#004EC4
Tritanopia (blue-blind)
#005F7C
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #4f38c7;
/* rgb */ color: rgb(79, 56, 199);
/* oklch */ color: oklch(46.3% 0.209 281.9);
Tailwind
colors: {
  custom: {
    50: '#8e71d9',
    500: '#4f38c7',
    950: '#000000',
  },
}
SCSS
$custom: #4f38c7;
$custom-light: #8e71d9;
$custom-dark: #000000;
JSON
{
  "hex": "#4f38c7",
  "rgb": {
    "r": 79,
    "g": 56,
    "b": 199
  },
  "hsl": {
    "h": 249.65,
    "s": 56.078,
    "l": 50
  },
  "oklch": {
    "l": 0.46299,
    "c": 0.2087,
    "h": 281.9
  },
  "luminance": 0.08614
}

Semantic roles & 50–950 ramp

primary
#4F38C7
secondary
#C3CD8D
accent
#DF48C7
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #4F38C7

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

Preview Lab → · Contrast checker → · Palette generator →

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