#4B287F#4B287F

#4B287F is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.3% C 0.140 H 297.7°. Best body text is #FFFFFF at 11.00:1 contrast (WCAG AA passes).

Color values

HEX#4B287F
RGBrgb(75, 40, 127)
HSLhsl(264, 52%, 33%)
HSVhsv(264, 69%, 50%)
CMYKcmyk(40.9%, 68.5%, 0%, 50.2%)
CIE-LABlab(25.40, 35.92, -43.36)
CIE-LCHlch(25.40, 56.31, 309.64°)
OKLaboklab(37.26% 0.0649 -0.1236)
OKLCHoklch(37.26% 0.14 297.7)
XYZxyz(7.4902, 4.5456, 20.5573)
Luminance0.0455 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4B287F #5C7F28
analogous
#28307F #4B287F #76287F
triadic
#4B287F #7F4B28 #287F4B
tetradic
#4B287F #7F2830 #5C7F28 #287F76
square
#4B287F #7F2830 #5C7F28 #287F76
split-complementary
#4B287F #7F7628 #307F28
monochromatic
#140B22 #301950 #4B287F #6637AE #8557CA

Accessibility & contrast

On white

11.00
#4B287F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#4B287F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4B287F
11.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4B287F#FFFFFF#000000##FFFFFF
##4B287F1.0011.001.9111.00
#FFFFFF11.001.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C82
Deuteranopia (green-blind)
#003B7D
Tritanopia (blue-blind)
#3E3C50
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #4b287f;
/* rgb */ color: rgb(75, 40, 127);
/* oklch */ color: oklch(37.3% 0.140 297.7);
Tailwind
colors: {
  custom: {
    50: '#8264a5',
    500: '#4b287f',
    950: '#000000',
  },
}
SCSS
$custom: #4b287f;
$custom-light: #8264a5;
$custom-dark: #000000;
JSON
{
  "hex": "#4b287f",
  "rgb": {
    "r": 75,
    "g": 40,
    "b": 127
  },
  "hsl": {
    "h": 264.138,
    "s": 52.096,
    "l": 32.745
  },
  "oklch": {
    "l": 0.37255,
    "c": 0.13962,
    "h": 297.7
  },
  "luminance": 0.04546
}

Semantic roles & 50–950 ramp

primary
#4B287F
secondary
#8AAF54
accent
#DC4CA2
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B050F
muted
#7C7A7F

Preview Lab

Preview with #4B287F

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

Preview Lab → · Contrast checker → · Palette generator →

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