#28138E#28138E

#28138E is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.7% C 0.182 H 277.1°. Best body text is #FFFFFF at 13.34:1 contrast (WCAG AA passes).

Color values

HEX#28138E
RGBrgb(40, 19, 142)
HSLhsl(250, 76%, 32%)
HSVhsv(250, 87%, 56%)
CMYKcmyk(71.8%, 86.6%, 0%, 44.3%)
CIE-LABlab(19.51, 45.89, -62.57)
CIE-LCHlch(19.51, 77.60, 306.26°)
OKLaboklab(32.7% 0.0224 -0.1808)
OKLCHoklch(32.7% 0.182 277.1)
XYZxyz(5.9888, 2.8693, 25.8242)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28138E #798E13
analogous
#133C8E #28138E #66138E
triadic
#28138E #8E2813 #138E28
tetradic
#28138E #8E133C #798E13 #138E66
square
#28138E #8E133C #798E13 #138E66
split-complementary
#28138E #8E6613 #3C8E13
monochromatic
#0A0522 #190C58 #28138E #371AC4 #5537E4

Accessibility & contrast

On white

13.34
#28138E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#28138E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28138E
13.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28138E#FFFFFF#000000##FFFFFF
##28138E1.0013.341.5713.34
#FFFFFF13.341.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003491
Deuteranopia (green-blind)
#002A8C
Tritanopia (blue-blind)
#003B53
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #28138e;
/* rgb */ color: rgb(40, 19, 142);
/* oklch */ color: oklch(32.7% 0.182 277.1);
Tailwind
colors: {
  custom: {
    50: '#7457b0',
    500: '#28138e',
    950: '#000000',
  },
}
SCSS
$custom: #28138e;
$custom-light: #7457b0;
$custom-dark: #000000;
JSON
{
  "hex": "#28138e",
  "rgb": {
    "r": 40,
    "g": 19,
    "b": 142
  },
  "hsl": {
    "h": 250.244,
    "s": 76.398,
    "l": 31.569
  },
  "oklch": {
    "l": 0.32696,
    "c": 0.18215,
    "h": 277.1
  },
  "luminance": 0.0287
}

Semantic roles & 50–950 ramp

primary
#28138E
secondary
#ABC23B
accent
#F335D3
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0311
muted
#7C7880

Preview Lab

Preview with #28138E

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

Preview Lab → · Contrast checker → · Palette generator →

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