#4F307B#4F307B

#4F307B is a dark, vivid violet. Relative luminance 0.052; OKLCH L 38.7% C 0.123 H 299.7°. Best body text is #FFFFFF at 10.29:1 contrast (WCAG AA passes).

Color values

HEX#4F307B
RGBrgb(79, 48, 123)
HSLhsl(265, 44%, 34%)
HSVhsv(265, 61%, 48%)
CMYKcmyk(35.8%, 61%, 0%, 51.8%)
CIE-LABlab(27.31, 31.10, -37.72)
CIE-LCHlch(27.31, 48.88, 309.50°)
OKLaboklab(38.66% 0.061 -0.1069)
OKLCHoklch(38.66% 0.123 299.7)
XYZxyz(7.8557, 5.2062, 19.3261)
Luminance0.0521 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F307B #5C7B30
analogous
#30367B #4F307B #74307B
triadic
#4F307B #7B4F30 #307B4F
tetradic
#4F307B #7B3036 #5C7B30 #307B74
square
#4F307B #7B3036 #5C7B30 #307B74
split-complementary
#4F307B #7B7430 #367B30
monochromatic
#160E23 #331F4F #4F307B #6B41A7 #8A63C2

Accessibility & contrast

On white

10.29
#4F307B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#4F307B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F307B
10.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F307B#FFFFFF#000000##FFFFFF
##4F307B1.0010.292.0410.29
#FFFFFF10.291.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#08407D
Deuteranopia (green-blind)
#184079
Tritanopia (blue-blind)
#464050
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #4f307b;
/* rgb */ color: rgb(79, 48, 123);
/* oklch */ color: oklch(38.7% 0.123 299.7);
Tailwind
colors: {
  custom: {
    50: '#836aa2',
    500: '#4f307b',
    950: '#000000',
  },
}
SCSS
$custom: #4f307b;
$custom-light: #836aa2;
$custom-dark: #000000;
JSON
{
  "hex": "#4f307b",
  "rgb": {
    "r": 79,
    "g": 48,
    "b": 123
  },
  "hsl": {
    "h": 264.8,
    "s": 43.86,
    "l": 33.529
  },
  "oklch": {
    "l": 0.38661,
    "c": 0.1231,
    "h": 299.7
  },
  "luminance": 0.05206
}

Semantic roles & 50–950 ramp

primary
#4F307B
secondary
#8AA95D
accent
#D4549F
background
#F8F6FA
surface
#EFEBF3
border
#CAC6CD
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #4F307B

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

Preview Lab → · Contrast checker → · Palette generator →

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