#4F308B#4F308B

#4F308B is a dark, vivid violet. Relative luminance 0.056; OKLCH L 39.9% C 0.144 H 294.7°. Best body text is #FFFFFF at 9.87:1 contrast (WCAG AA passes).

Color values

HEX#4F308B
RGBrgb(79, 48, 139)
HSLhsl(260, 49%, 37%)
HSVhsv(260, 65%, 55%)
CMYKcmyk(43.2%, 65.5%, 0%, 45.5%)
CIE-LABlab(28.49, 35.65, -45.83)
CIE-LCHlch(28.49, 58.06, 307.87°)
OKLaboklab(39.89% 0.0601 -0.1308)
OKLCHoklch(39.89% 0.144 294.7)
XYZxyz(8.9404, 5.6400, 25.0387)
Luminance0.0564 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F308B #6C8B30
analogous
#303E8B #4F308B #7D308B
triadic
#4F308B #8B4F30 #308B4F
tetradic
#4F308B #8B303E #6C8B30 #308B7D
square
#4F308B #8B303E #6C8B30 #308B7D
split-complementary
#4F308B #8B7D30 #3E8B30
monochromatic
#1B1130 #35205E #4F308B #6940B8 #8B6ACC

Accessibility & contrast

On white

9.87
#4F308B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#4F308B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F308B
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F308B#FFFFFF#000000##FFFFFF
##4F308B1.009.872.139.87
#FFFFFF9.871.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448E
Deuteranopia (green-blind)
#004289
Tritanopia (blue-blind)
#3F4559
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #4f308b;
/* rgb */ color: rgb(79, 48, 139);
/* oklch */ color: oklch(39.9% 0.144 294.7);
Tailwind
colors: {
  custom: {
    50: '#856aae',
    500: '#4f308b',
    950: '#000000',
  },
}
SCSS
$custom: #4f308b;
$custom-light: #856aae;
$custom-dark: #000000;
JSON
{
  "hex": "#4f308b",
  "rgb": {
    "r": 79,
    "g": 48,
    "b": 139
  },
  "hsl": {
    "h": 260.44,
    "s": 48.663,
    "l": 36.667
  },
  "oklch": {
    "l": 0.39885,
    "c": 0.14393,
    "h": 294.7
  },
  "luminance": 0.0564
}

Semantic roles & 50–950 ramp

primary
#4F308B
secondary
#98B364
accent
#D850AA
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #4F308B

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

Preview Lab → · Contrast checker → · Palette generator →

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