#4F237D#4F237D

#4F237D is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.9% C 0.145 H 302.1°. Best body text is #FFFFFF at 11.24:1 contrast (WCAG AA passes).

Color values

HEX#4F237D
RGBrgb(79, 35, 125)
HSLhsl(269, 56%, 31%)
HSVhsv(269, 72%, 49%)
CMYKcmyk(36.8%, 72%, 0%, 51%)
CIE-LABlab(24.78, 38.93, -43.07)
CIE-LCHlch(24.78, 58.06, 312.11°)
OKLaboklab(36.88% 0.0769 -0.1226)
OKLCHoklch(36.88% 0.145 302.1)
XYZxyz(7.5263, 4.3450, 19.8402)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F237D #517D23
analogous
#23247D #4F237D #7C237D
triadic
#4F237D #7D4F23 #237D4F
tetradic
#4F237D #7D2324 #517D23 #237D7C
square
#4F237D #7D2324 #517D23 #237D7C
split-complementary
#4F237D #7D7C23 #247D23
monochromatic
#13081D #31164D #4F237D #6D30AD #8C4DCD

Accessibility & contrast

On white

11.24
#4F237D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#4F237D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F237D
11.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F237D#FFFFFF#000000##FFFFFF
##4F237D1.0011.241.8711.24
#FFFFFF11.241.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A80
Deuteranopia (green-blind)
#003A7B
Tritanopia (blue-blind)
#45384D
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #4f237d;
/* rgb */ color: rgb(79, 35, 125);
/* oklch */ color: oklch(36.9% 0.145 302.1);
Tailwind
colors: {
  custom: {
    50: '#8562a3',
    500: '#4f237d',
    950: '#000000',
  },
}
SCSS
$custom: #4f237d;
$custom-light: #8562a3;
$custom-dark: #000000;
JSON
{
  "hex": "#4f237d",
  "rgb": {
    "r": 79,
    "g": 35,
    "b": 125
  },
  "hsl": {
    "h": 269.333,
    "s": 56.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.36877,
    "c": 0.14473,
    "h": 302.1
  },
  "luminance": 0.04345
}

Semantic roles & 50–950 ramp

primary
#4F237D
secondary
#7FAF4C
accent
#E04896
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4F237D

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

Preview Lab → · Contrast checker → · Palette generator →

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