#4F238E#4F238E

#4F238E is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.3% C 0.164 H 296.5°. Best body text is #FFFFFF at 10.70:1 contrast (WCAG AA passes).

Color values

HEX#4F238E
RGBrgb(79, 35, 142)
HSLhsl(265, 60%, 35%)
HSVhsv(265, 75%, 56%)
CMYKcmyk(44.4%, 75.4%, 0%, 44.3%)
CIE-LABlab(26.21, 43.47, -51.40)
CIE-LCHlch(26.21, 67.31, 310.22°)
OKLaboklab(38.33% 0.0734 -0.1471)
OKLCHoklch(38.33% 0.164 296.5)
XYZxyz(8.7067, 4.8171, 26.0570)
Luminance0.0482 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F238E #628E23
analogous
#232C8E #4F238E #85238E
triadic
#4F238E #8E4F23 #238E4F
tetradic
#4F238E #8E232C #628E23 #238E85
square
#4F238E #8E232C #628E23 #238E85
split-complementary
#4F238E #8E8523 #2C8E23
monochromatic
#180B2C #34175D #4F238E #6A2FBF #8A56D5

Accessibility & contrast

On white

10.70
#4F238E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#4F238E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F238E
10.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F238E#FFFFFF#000000##FFFFFF
##4F238E1.0010.701.9610.70
#FFFFFF10.701.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F91
Deuteranopia (green-blind)
#003D8C
Tritanopia (blue-blind)
#3E3F57
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #4f238e;
/* rgb */ color: rgb(79, 35, 142);
/* oklch */ color: oklch(38.3% 0.164 296.5);
Tailwind
colors: {
  custom: {
    50: '#8762b0',
    500: '#4f238e',
    950: '#000000',
  },
}
SCSS
$custom: #4f238e;
$custom-light: #8762b0;
$custom-dark: #000000;
JSON
{
  "hex": "#4f238e",
  "rgb": {
    "r": 79,
    "g": 35,
    "b": 142
  },
  "hsl": {
    "h": 264.673,
    "s": 60.452,
    "l": 34.706
  },
  "oklch": {
    "l": 0.38334,
    "c": 0.16438,
    "h": 296.5
  },
  "luminance": 0.04817
}

Semantic roles & 50–950 ramp

primary
#4F238E
secondary
#8FB953
accent
#E444A2
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #4F238E

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

Preview Lab → · Contrast checker → · Palette generator →

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