#4F238B#4F238B

#4F238B is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.1% C 0.161 H 297.4°. Best body text is #FFFFFF at 10.79:1 contrast (WCAG AA passes).

Color values

HEX#4F238B
RGBrgb(79, 35, 139)
HSLhsl(265, 60%, 34%)
HSVhsv(265, 75%, 55%)
CMYKcmyk(43.2%, 74.8%, 0%, 45.5%)
CIE-LABlab(25.95, 42.66, -49.96)
CIE-LCHlch(25.95, 65.69, 310.49°)
OKLaboklab(38.07% 0.0741 -0.1429)
OKLCHoklch(38.07% 0.161 297.4)
XYZxyz(8.4845, 4.7283, 24.8867)
Luminance0.0473 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F238B #5F8B23
analogous
#232B8B #4F238B #83238B
triadic
#4F238B #8B4F23 #238B4F
tetradic
#4F238B #8B232B #5F8B23 #238B83
square
#4F238B #8B232B #5F8B23 #238B83
split-complementary
#4F238B #8B8323 #2B8B23
monochromatic
#170A29 #33175A #4F238B #6B2FBC #8A54D4

Accessibility & contrast

On white

10.79
#4F238B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#4F238B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F238B
10.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F238B#FFFFFF#000000##FFFFFF
##4F238B1.0010.791.9510.79
#FFFFFF10.791.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8E
Deuteranopia (green-blind)
#003C89
Tritanopia (blue-blind)
#403E55
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #4f238b;
/* rgb */ color: rgb(79, 35, 139);
/* oklch */ color: oklch(38.1% 0.161 297.4);
Tailwind
colors: {
  custom: {
    50: '#8662ae',
    500: '#4f238b',
    950: '#000000',
  },
}
SCSS
$custom: #4f238b;
$custom-light: #8662ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4f238b",
  "rgb": {
    "r": 79,
    "g": 35,
    "b": 139
  },
  "hsl": {
    "h": 265.385,
    "s": 59.77,
    "l": 34.118
  },
  "oklch": {
    "l": 0.38068,
    "c": 0.16094,
    "h": 297.4
  },
  "luminance": 0.04728
}

Semantic roles & 50–950 ramp

primary
#4F238B
secondary
#8DB852
accent
#E345A0
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #4F238B

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

Preview Lab → · Contrast checker → · Palette generator →

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