#4F337B#4F337B

#4F337B is a dark, moderate violet. Relative luminance 0.055; OKLCH L 39.2% C 0.118 H 298.8°. Best body text is #FFFFFF at 10.04:1 contrast (WCAG AA passes).

Color values

HEX#4F337B
RGBrgb(79, 51, 123)
HSLhsl(263, 41%, 34%)
HSVhsv(263, 59%, 48%)
CMYKcmyk(35.8%, 58.5%, 0%, 51.8%)
CIE-LABlab(28.01, 29.28, -36.61)
CIE-LCHlch(28.01, 46.88, 308.65°)
OKLaboklab(39.17% 0.0569 -0.1037)
OKLCHoklch(39.17% 0.118 298.8)
XYZxyz(7.9826, 5.4599, 19.3684)
Luminance0.0546 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F337B #5F7B33
analogous
#333B7B #4F337B #73337B
triadic
#4F337B #7B4F33 #337B4F
tetradic
#4F337B #7B333B #5F7B33 #337B73
square
#4F337B #7B333B #5F7B33 #337B73
split-complementary
#4F337B #7B7333 #3B7B33
monochromatic
#170F24 #332150 #4F337B #6B45A6 #8A68C0

Accessibility & contrast

On white

10.04
#4F337B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#4F337B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F337B
10.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F337B#FFFFFF#000000##FFFFFF
##4F337B1.0010.042.0910.04
#FFFFFF10.041.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#12427D
Deuteranopia (green-blind)
#1D4179
Tritanopia (blue-blind)
#454252
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #4f337b;
/* rgb */ color: rgb(79, 51, 123);
/* oklch */ color: oklch(39.2% 0.118 298.8);
Tailwind
colors: {
  custom: {
    50: '#836ca2',
    500: '#4f337b',
    950: '#000000',
  },
}
SCSS
$custom: #4f337b;
$custom-light: #836ca2;
$custom-dark: #000000;
JSON
{
  "hex": "#4f337b",
  "rgb": {
    "r": 79,
    "g": 51,
    "b": 123
  },
  "hsl": {
    "h": 263.333,
    "s": 41.379,
    "l": 34.118
  },
  "oklch": {
    "l": 0.39169,
    "c": 0.11827,
    "h": 298.8
  },
  "luminance": 0.0546
}

Semantic roles & 50–950 ramp

primary
#4F337B
secondary
#8DA862
accent
#D157A2
background
#F8F6FA
surface
#EFEBF3
border
#CAC6CD
text
#0B070F
muted
#7C7A7F

Preview Lab

Preview with #4F337B

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

Preview Lab → · Contrast checker → · Palette generator →

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