#4F299B#4F299B

#4F299B is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.3% C 0.173 H 292.0°. Best body text is #FFFFFF at 9.89:1 contrast (WCAG AA passes).

Color values

HEX#4F299B
RGBrgb(79, 41, 155)
HSLhsl(260, 58%, 38%)
HSVhsv(260, 74%, 61%)
CMYKcmyk(49%, 73.5%, 0%, 39.2%)
CIE-LABlab(28.42, 44.05, -55.78)
CIE-LCHlch(28.42, 71.08, 308.30°)
OKLaboklab(40.25% 0.0647 -0.16)
OKLCHoklch(40.25% 0.173 292)
XYZxyz(9.9321, 5.6143, 31.5643)
Luminance0.0561 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F299B #759B29
analogous
#293C9B #4F299B #88299B
triadic
#4F299B #9B4F29 #299B4F
tetradic
#4F299B #9B293C #759B29 #299B88
square
#4F299B #9B293C #759B29 #299B88
split-complementary
#4F299B #9B8829 #3C9B29
monochromatic
#1E0F3A #361C6B #4F299B #6837CA #8D67D7

Accessibility & contrast

On white

9.89
#4F299B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#4F299B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F299B
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F299B#FFFFFF#000000##FFFFFF
##4F299B1.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459E
Deuteranopia (green-blind)
#004199
Tritanopia (blue-blind)
#37475F
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4f299b;
/* rgb */ color: rgb(79, 41, 155);
/* oklch */ color: oklch(40.3% 0.173 292.0);
Tailwind
colors: {
  custom: {
    50: '#8866b9',
    500: '#4f299b',
    950: '#000000',
  },
}
SCSS
$custom: #4f299b;
$custom-light: #8866b9;
$custom-dark: #000000;
JSON
{
  "hex": "#4f299b",
  "rgb": {
    "r": 79,
    "g": 41,
    "b": 155
  },
  "hsl": {
    "h": 260,
    "s": 58.163,
    "l": 38.431
  },
  "oklch": {
    "l": 0.4025,
    "c": 0.17261,
    "h": 292
  },
  "luminance": 0.05615
}

Semantic roles & 50–950 ramp

primary
#4F299B
secondary
#9FBD63
accent
#E146AE
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #4F299B

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

Preview Lab → · Contrast checker → · Palette generator →

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