#4F237B#4F237B

#4F237B is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.7% C 0.142 H 302.8°. Best body text is #FFFFFF at 11.30:1 contrast (WCAG AA passes).

Color values

HEX#4F237B
RGBrgb(79, 35, 123)
HSLhsl(270, 56%, 31%)
HSVhsv(270, 72%, 48%)
CMYKcmyk(35.8%, 71.5%, 0%, 51.8%)
CIE-LABlab(24.62, 38.41, -42.06)
CIE-LCHlch(24.62, 56.96, 312.40°)
OKLaboklab(36.71% 0.0772 -0.1197)
OKLCHoklch(36.71% 0.142 302.8)
XYZxyz(7.3998, 4.2944, 19.1741)
Luminance0.0429 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F237B #4F7B23
analogous
#23237B #4F237B #7B237B
triadic
#4F237B #7B4F23 #237B4F
tetradic
#4F237B #7B2323 #4F7B23 #237B7B
square
#4F237B #7B2323 #4F7B23 #237B7B
split-complementary
#4F237B #7B7B23 #237B23
monochromatic
#12081C #30154B #4F237B #6E31AB #8C4CCC

Accessibility & contrast

On white

11.30
#4F237B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#4F237B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F237B
11.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F237B#FFFFFF#000000##FFFFFF
##4F237B1.0011.301.8611.30
#FFFFFF11.301.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7E
Deuteranopia (green-blind)
#003A79
Tritanopia (blue-blind)
#46374C
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4f237b;
/* rgb */ color: rgb(79, 35, 123);
/* oklch */ color: oklch(36.7% 0.142 302.8);
Tailwind
colors: {
  custom: {
    50: '#8462a2',
    500: '#4f237b',
    950: '#000000',
  },
}
SCSS
$custom: #4f237b;
$custom-light: #8462a2;
$custom-dark: #000000;
JSON
{
  "hex": "#4f237b",
  "rgb": {
    "r": 79,
    "g": 35,
    "b": 123
  },
  "hsl": {
    "h": 270,
    "s": 55.696,
    "l": 30.98
  },
  "oklch": {
    "l": 0.36713,
    "c": 0.14239,
    "h": 302.8
  },
  "luminance": 0.04294
}

Semantic roles & 50–950 ramp

primary
#4F237B
secondary
#7DAE4C
accent
#DF4994
background
#F8F5FA
surface
#F0EAF3
border
#CBC6CD
text
#0B050F
muted
#7C797F

Preview Lab

Preview with #4F237B

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

Preview Lab → · Contrast checker → · Palette generator →

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