#28166B#28166B

#28166B is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.0% C 0.137 H 283.6°. Best body text is #FFFFFF at 14.82:1 contrast (WCAG AA passes).

Color values

HEX#28166B
RGBrgb(40, 22, 107)
HSLhsl(253, 66%, 25%)
HSVhsv(253, 79%, 42%)
CMYKcmyk(62.6%, 79.4%, 0%, 58%)
CIE-LABlab(15.93, 33.55, -46.15)
CIE-LCHlch(15.93, 57.06, 306.02°)
OKLaboklab(29.02% 0.0321 -0.133)
OKLCHoklch(29.02% 0.137 283.6)
XYZxyz(3.8150, 2.0862, 14.1087)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28166B #596B16
analogous
#162E6B #28166B #52166B
triadic
#28166B #6B2816 #166B28
tetradic
#28166B #6B162E #596B16 #166B52
square
#28166B #6B162E #596B16 #166B52
split-complementary
#28166B #6B5216 #2E6B16
monochromatic
#090519 #150C38 #28166B #3B209E #4E2BD1

Accessibility & contrast

On white

14.82
#28166B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#28166B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28166B
14.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28166B#FFFFFF#000000##FFFFFF
##28166B1.0014.821.4214.82
#FFFFFF14.821.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6D
Deuteranopia (green-blind)
#002569
Tritanopia (blue-blind)
#002E3F
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #28166b;
/* rgb */ color: rgb(40, 22, 107);
/* oklch */ color: oklch(29.0% 0.137 283.6);
Tailwind
colors: {
  custom: {
    50: '#6b5696',
    500: '#28166b',
    950: '#000000',
  },
}
SCSS
$custom: #28166b;
$custom-light: #6b5696;
$custom-dark: #000000;
JSON
{
  "hex": "#28166b",
  "rgb": {
    "r": 40,
    "g": 22,
    "b": 107
  },
  "hsl": {
    "h": 252.706,
    "s": 65.891,
    "l": 25.294
  },
  "oklch": {
    "l": 0.29018,
    "c": 0.13682,
    "h": 283.6
  },
  "luminance": 0.02086
}

Semantic roles & 50–950 ramp

primary
#28166B
secondary
#8CA13B
accent
#E93FC5
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030D
muted
#7A787E

Preview Lab

Preview with #28166B

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

Preview Lab → · Contrast checker → · Palette generator →

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