#4F30B3#4F30B3

#4F30B3 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.4% C 0.193 H 286.0°. Best body text is #FFFFFF at 8.73:1 contrast (WCAG AA passes).

Color values

HEX#4F30B3
RGBrgb(79, 48, 179)
HSLhsl(254, 58%, 45%)
HSVhsv(254, 73%, 70%)
CMYKcmyk(55.9%, 73.2%, 0%, 29.8%)
CIE-LABlab(31.88, 47.34, -64.58)
CIE-LCHlch(31.88, 80.07, 306.24°)
OKLaboklab(43.36% 0.0533 -0.1858)
OKLCHoklch(43.36% 0.193 286)
XYZxyz(12.4156, 7.0301, 43.3418)
Luminance0.0703 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F30B3 #94B330
analogous
#3053B3 #4F30B3 #9030B3
triadic
#4F30B3 #B34F30 #30B34F
tetradic
#4F30B3 #B33053 #94B330 #30B390
square
#4F30B3 #B33053 #94B330 #30B390
split-complementary
#4F30B3 #B39030 #53B330
monochromatic
#241652 #3A2383 #4F30B3 #6E50D0 #9680DD

Accessibility & contrast

On white

8.73
#4F30B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#4F30B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F30B3
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F30B3#FFFFFF#000000##FFFFFF
##4F30B31.008.732.418.73
#FFFFFF8.731.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB7
Deuteranopia (green-blind)
#0047B1
Tritanopia (blue-blind)
#21546F
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #4f30b3;
/* rgb */ color: rgb(79, 48, 179);
/* oklch */ color: oklch(43.4% 0.193 286.0);
Tailwind
colors: {
  custom: {
    50: '#8b6ccb',
    500: '#4f30b3',
    950: '#000000',
  },
}
SCSS
$custom: #4f30b3;
$custom-light: #8b6ccb;
$custom-dark: #000000;
JSON
{
  "hex": "#4f30b3",
  "rgb": {
    "r": 79,
    "g": 48,
    "b": 179
  },
  "hsl": {
    "h": 254.198,
    "s": 57.709,
    "l": 44.51
  },
  "oklch": {
    "l": 0.43361,
    "c": 0.19332,
    "h": 286
  },
  "luminance": 0.07031
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #4F30B3

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

Preview Lab → · Contrast checker → · Palette generator →

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