#4F288B#4F288B

#4F288B is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.7% C 0.155 H 296.5°. Best body text is #FFFFFF at 10.45:1 contrast (WCAG AA passes).

Color values

HEX#4F288B
RGBrgb(79, 40, 139)
HSLhsl(264, 55%, 35%)
HSVhsv(264, 71%, 55%)
CMYKcmyk(43.2%, 71.2%, 0%, 45.5%)
CIE-LABlab(26.86, 40.10, -48.47)
CIE-LCHlch(26.86, 62.91, 309.60°)
OKLaboklab(38.72% 0.069 -0.1385)
OKLCHoklch(38.72% 0.155 296.5)
XYZxyz(8.6422, 5.0438, 24.9393)
Luminance0.0504 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F288B #648B28
analogous
#28338B #4F288B #80288B
triadic
#4F288B #8B4F28 #288B4F
tetradic
#4F288B #8B2833 #648B28 #288B80
square
#4F288B #8B2833 #648B28 #288B80
split-complementary
#4F288B #8B8028 #338B28
monochromatic
#190D2C #341A5B #4F288B #6A36BB #8A5DD0

Accessibility & contrast

On white

10.45
#4F288B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#4F288B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F288B
10.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F288B#FFFFFF#000000##FFFFFF
##4F288B1.0010.452.0110.45
#FFFFFF10.451.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00408E
Deuteranopia (green-blind)
#003E89
Tritanopia (blue-blind)
#3F4056
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #4f288b;
/* rgb */ color: rgb(79, 40, 139);
/* oklch */ color: oklch(38.7% 0.155 296.5);
Tailwind
colors: {
  custom: {
    50: '#8665ae',
    500: '#4f288b',
    950: '#000000',
  },
}
SCSS
$custom: #4f288b;
$custom-light: #8665ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4f288b",
  "rgb": {
    "r": 79,
    "g": 40,
    "b": 139
  },
  "hsl": {
    "h": 263.636,
    "s": 55.307,
    "l": 35.098
  },
  "oklch": {
    "l": 0.38716,
    "c": 0.15477,
    "h": 296.5
  },
  "luminance": 0.05044
}

Semantic roles & 50–950 ramp

primary
#4F288B
secondary
#91B659
accent
#DF49A4
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #4F288B

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

Preview Lab → · Contrast checker → · Palette generator →

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