#4F30B2#4F30B2

#4F30B2 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.3% C 0.192 H 286.2°. Best body text is #FFFFFF at 8.76:1 contrast (WCAG AA passes).

Color values

HEX#4F30B2
RGBrgb(79, 48, 178)
HSLhsl(254, 58%, 44%)
HSVhsv(254, 73%, 70%)
CMYKcmyk(55.6%, 73%, 0%, 30.2%)
CIE-LABlab(31.78, 47.04, -64.13)
CIE-LCHlch(31.78, 79.54, 306.26°)
OKLaboklab(43.27% 0.0535 -0.1845)
OKLCHoklch(43.27% 0.192 286.2)
XYZxyz(12.3149, 6.9898, 42.8111)
Luminance0.0699 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F30B2 #93B230
analogous
#3052B2 #4F30B2 #9030B2
triadic
#4F30B2 #B24F30 #30B24F
tetradic
#4F30B2 #B23052 #93B230 #30B290
square
#4F30B2 #B23052 #93B230 #30B290
split-complementary
#4F30B2 #B29030 #52B230
monochromatic
#241652 #3A2382 #4F30B2 #6E50D0 #9680DD

Accessibility & contrast

On white

8.76
#4F30B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#4F30B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F30B2
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F30B2#FFFFFF#000000##FFFFFF
##4F30B21.008.762.408.76
#FFFFFF8.761.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB6
Deuteranopia (green-blind)
#0047B0
Tritanopia (blue-blind)
#22536E
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4f30b2;
/* rgb */ color: rgb(79, 48, 178);
/* oklch */ color: oklch(43.3% 0.192 286.2);
Tailwind
colors: {
  custom: {
    50: '#8b6bca',
    500: '#4f30b2',
    950: '#000000',
  },
}
SCSS
$custom: #4f30b2;
$custom-light: #8b6bca;
$custom-dark: #000000;
JSON
{
  "hex": "#4f30b2",
  "rgb": {
    "r": 79,
    "g": 48,
    "b": 178
  },
  "hsl": {
    "h": 254.308,
    "s": 57.522,
    "l": 44.314
  },
  "oklch": {
    "l": 0.43268,
    "c": 0.19212,
    "h": 286.2
  },
  "luminance": 0.06991
}

Semantic roles & 50–950 ramp

primary
#4F30B2
secondary
#B3C678
accent
#E147BC
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #4F30B2

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

Preview Lab → · Contrast checker → · Palette generator →

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