#28128F#28128F

#28128F is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.7% C 0.184 H 277.0°. Best body text is #FFFFFF at 13.35:1 contrast (WCAG AA passes).

Color values

HEX#28128F
RGBrgb(40, 18, 143)
HSLhsl(251, 78%, 32%)
HSVhsv(251, 87%, 56%)
CMYKcmyk(72%, 87.4%, 0%, 43.9%)
CIE-LABlab(19.50, 46.59, -63.21)
CIE-LCHlch(19.50, 78.53, 306.39°)
OKLaboklab(32.72% 0.0224 -0.1826)
OKLCHoklch(32.72% 0.184 277)
XYZxyz(6.0477, 2.8663, 26.2158)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28128F #798F12
analogous
#123B8F #28128F #67128F
triadic
#28128F #8F2812 #128F28
tetradic
#28128F #8F123B #798F12 #128F67
square
#28128F #8F123B #798F12 #128F67
split-complementary
#28128F #8F6712 #3B8F12
monochromatic
#0A0422 #190B59 #28128F #3719C5 #5536E6

Accessibility & contrast

On white

13.35
#28128F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#28128F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28128F
13.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28128F#FFFFFF#000000##FFFFFF
##28128F1.0013.351.5713.35
#FFFFFF13.351.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003492
Deuteranopia (green-blind)
#002A8D
Tritanopia (blue-blind)
#003C54
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #28128f;
/* rgb */ color: rgb(40, 18, 143);
/* oklch */ color: oklch(32.7% 0.184 277.0);
Tailwind
colors: {
  custom: {
    50: '#7456b1',
    500: '#28128f',
    950: '#000000',
  },
}
SCSS
$custom: #28128f;
$custom-light: #7456b1;
$custom-dark: #000000;
JSON
{
  "hex": "#28128f",
  "rgb": {
    "r": 40,
    "g": 18,
    "b": 143
  },
  "hsl": {
    "h": 250.56,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.32724,
    "c": 0.18398,
    "h": 277
  },
  "luminance": 0.02867
}

Semantic roles & 50–950 ramp

primary
#28128F
secondary
#ABC33A
accent
#F434D2
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0311
muted
#7C7880

Preview Lab

Preview with #28128F

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

Preview Lab → · Contrast checker → · Palette generator →

#28128F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva