#28138A#28138A

#28138A is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.2% C 0.177 H 277.7°. Best body text is #FFFFFF at 13.54:1 contrast (WCAG AA passes).

Color values

HEX#28138A
RGBrgb(40, 19, 138)
HSLhsl(251, 76%, 31%)
HSVhsv(251, 86%, 54%)
CMYKcmyk(71%, 86.2%, 0%, 45.9%)
CIE-LABlab(19.02, 44.70, -60.89)
CIE-LCHlch(19.02, 75.53, 306.28°)
OKLaboklab(32.22% 0.0238 -0.1759)
OKLCHoklch(32.22% 0.177 277.7)
XYZxyz(5.6939, 2.7513, 24.2708)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28138A #758A13
analogous
#13398A #28138A #63138A
triadic
#28138A #8A2813 #138A28
tetradic
#28138A #8A1339 #758A13 #138A63
square
#28138A #8A1339 #758A13 #138A63
split-complementary
#28138A #8A6313 #398A13
monochromatic
#09041E #180C54 #28138A #381AC0 #5334E3

Accessibility & contrast

On white

13.54
#28138A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#28138A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28138A
13.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28138A#FFFFFF#000000##FFFFFF
##28138A1.0013.541.5513.54
#FFFFFF13.541.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338D
Deuteranopia (green-blind)
#002988
Tritanopia (blue-blind)
#003A51
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #28138a;
/* rgb */ color: rgb(40, 19, 138);
/* oklch */ color: oklch(32.2% 0.177 277.7);
Tailwind
colors: {
  custom: {
    50: '#7356ad',
    500: '#28138a',
    950: '#000000',
  },
}
SCSS
$custom: #28138a;
$custom-light: #7356ad;
$custom-dark: #000000;
JSON
{
  "hex": "#28138a",
  "rgb": {
    "r": 40,
    "g": 19,
    "b": 138
  },
  "hsl": {
    "h": 250.588,
    "s": 75.796,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32216,
    "c": 0.17747,
    "h": 277.7
  },
  "luminance": 0.02752
}

Semantic roles & 50–950 ramp

primary
#28138A
secondary
#A7BE3A
accent
#F235D1
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #28138A

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

Preview Lab → · Contrast checker → · Palette generator →

#28138A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva