#4D248B#4D248B

#4D248B is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.0% C 0.160 H 296.0°. Best body text is #FFFFFF at 10.82:1 contrast (WCAG AA passes).

Color values

HEX#4D248B
RGBrgb(77, 36, 139)
HSLhsl(264, 59%, 34%)
HSVhsv(264, 74%, 55%)
CMYKcmyk(44.6%, 74.1%, 0%, 45.5%)
CIE-LABlab(25.87, 41.79, -50.09)
CIE-LCHlch(25.87, 65.24, 309.84°)
OKLaboklab(37.96% 0.07 -0.1433)
OKLCHoklch(37.96% 0.16 296)
XYZxyz(8.3504, 4.7034, 24.8890)
Luminance0.0470 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4D248B #628B24
analogous
#242F8B #4D248B #81248B
triadic
#4D248B #8B4D24 #248B4D
tetradic
#4D248B #8B242F #628B24 #248B81
square
#4D248B #8B242F #628B24 #248B81
split-complementary
#4D248B #8B8124 #2F8B24
monochromatic
#170B2A #32175A #4D248B #6831BC #8856D3

Accessibility & contrast

On white

10.82
#4D248B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#4D248B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4D248B
10.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4D248B#FFFFFF#000000##FFFFFF
##4D248B1.0010.821.9410.82
#FFFFFF10.821.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.821.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4d248b;
/* rgb */ color: rgb(77, 36, 139);
/* oklch */ color: oklch(38.0% 0.160 296.0);
Tailwind
colors: {
  custom: {
    50: '#8563ae',
    500: '#4d248b',
    950: '#000000',
  },
}
SCSS
$custom: #4d248b;
$custom-light: #8563ae;
$custom-dark: #000000;
JSON
{
  "hex": "#4d248b",
  "rgb": {
    "r": 77,
    "g": 36,
    "b": 139
  },
  "hsl": {
    "h": 263.883,
    "s": 58.857,
    "l": 34.314
  },
  "oklch": {
    "l": 0.3796,
    "c": 0.15955,
    "h": 296
  },
  "luminance": 0.04704
}

Semantic roles & 50–950 ramp

primary
#4D248B
secondary
#90B753
accent
#E246A4
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #4D248B

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

Preview Lab → · Contrast checker → · Palette generator →

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