#4F30CF#4F30CF

#4F30CF is a mid, highly saturated violet. Relative luminance 0.083; OKLCH L 46.1% C 0.226 H 281.8°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#4F30CF
RGBrgb(79, 48, 207)
HSLhsl(252, 62%, 50%)
HSVhsv(252, 77%, 81%)
CMYKcmyk(61.8%, 76.8%, 0%, 18.8%)
CIE-LABlab(34.56, 55.48, -76.61)
CIE-LCHlch(34.56, 94.59, 305.91°)
OKLaboklab(46.06% 0.0462 -0.221)
OKLCHoklch(46.06% 0.226 281.8)
XYZxyz(15.5404, 8.2800, 59.7987)
Luminance0.0828 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F30CF #B0CF30
analogous
#3061CF #4F30CF #9E30CF
triadic
#4F30CF #CF4F30 #30CF4F
tetradic
#4F30CF #CF3061 #B0CF30 #30CF9E
square
#4F30CF #CF3061 #B0CF30 #30CF9E
split-complementary
#4F30CF #CF9E30 #61CF30
monochromatic
#29196C #3C249D #4F30CF #7962DB #A393E6

Accessibility & contrast

On white

7.91
#4F30CF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#4F30CF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F30CF
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F30CF#FFFFFF#000000##FFFFFF
##4F30CF1.007.912.667.91
#FFFFFF7.911.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056D3
Deuteranopia (green-blind)
#004CCC
Tritanopia (blue-blind)
#005F7E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #4f30cf;
/* rgb */ color: rgb(79, 48, 207);
/* oklch */ color: oklch(46.1% 0.226 281.8);
Tailwind
colors: {
  custom: {
    50: '#906ddf',
    500: '#4f30cf',
    950: '#000000',
  },
}
SCSS
$custom: #4f30cf;
$custom-light: #906ddf;
$custom-dark: #000000;
JSON
{
  "hex": "#4f30cf",
  "rgb": {
    "r": 79,
    "g": 48,
    "b": 207
  },
  "hsl": {
    "h": 251.698,
    "s": 62.353,
    "l": 50
  },
  "oklch": {
    "l": 0.46058,
    "c": 0.2258,
    "h": 281.8
  },
  "luminance": 0.08281
}

Semantic roles & 50–950 ramp

primary
#4F30CF
secondary
#C3D18A
accent
#E542C6
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #4F30CF

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

Preview Lab → · Contrast checker → · Palette generator →

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