#28148B#28148B

#28148B is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.4% C 0.178 H 277.4°. Best body text is #FFFFFF at 13.43:1 contrast (WCAG AA passes).

Color values

HEX#28148B
RGBrgb(40, 20, 139)
HSLhsl(250, 75%, 31%)
HSVhsv(250, 86%, 55%)
CMYKcmyk(71.2%, 85.6%, 0%, 45.5%)
CIE-LABlab(19.29, 44.57, -61.07)
CIE-LCHlch(19.29, 75.60, 306.12°)
OKLaboklab(32.44% 0.0231 -0.1764)
OKLCHoklch(32.44% 0.178 277.4)
XYZxyz(5.7839, 2.8150, 24.6596)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28148B #778B14
analogous
#143B8B #28148B #63148B
triadic
#28148B #8B2814 #148B28
tetradic
#28148B #8B143B #778B14 #148B63
square
#28148B #8B143B #778B14 #148B63
split-complementary
#28148B #8B6314 #3B8B14
monochromatic
#090520 #190C55 #28148B #371CC1 #5437E2

Accessibility & contrast

On white

13.43
#28148B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#28148B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28148B
13.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28148B#FFFFFF#000000##FFFFFF
##28148B1.0013.431.5613.43
#FFFFFF13.431.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338E
Deuteranopia (green-blind)
#002A89
Tritanopia (blue-blind)
#003A52
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #28148b;
/* rgb */ color: rgb(40, 20, 139);
/* oklch */ color: oklch(32.4% 0.178 277.4);
Tailwind
colors: {
  custom: {
    50: '#7357ae',
    500: '#28148b',
    950: '#000000',
  },
}
SCSS
$custom: #28148b;
$custom-light: #7357ae;
$custom-dark: #000000;
JSON
{
  "hex": "#28148b",
  "rgb": {
    "r": 40,
    "g": 20,
    "b": 139
  },
  "hsl": {
    "h": 250.084,
    "s": 74.843,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32435,
    "c": 0.17792,
    "h": 277.4
  },
  "luminance": 0.02816
}

Semantic roles & 50–950 ramp

primary
#28148B
secondary
#A9BF3C
accent
#F136D2
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090310
muted
#7B787F

Preview Lab

Preview with #28148B

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

Preview Lab → · Contrast checker → · Palette generator →

#28148B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva