#28167B#28167B

#28167B is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.8% C 0.157 H 280.0°. Best body text is #FFFFFF at 14.08:1 contrast (WCAG AA passes).

Color values

HEX#28167B
RGBrgb(40, 22, 123)
HSLhsl(251, 70%, 28%)
HSVhsv(251, 82%, 48%)
CMYKcmyk(67.5%, 82.1%, 0%, 51.8%)
CIE-LABlab(17.71, 38.68, -53.56)
CIE-LCHlch(17.71, 66.06, 305.84°)
OKLaboklab(30.79% 0.0273 -0.1546)
OKLCHoklch(30.79% 0.157 280)
XYZxyz(4.7360, 2.4546, 18.9593)
Luminance0.0245 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28167B #697B16
analogous
#16367B #28167B #5A167B
triadic
#28167B #7B2816 #167B28
tetradic
#28167B #7B1636 #697B16 #167B5A
square
#28167B #7B1636 #697B16 #167B5A
split-complementary
#28167B #7B5A16 #367B16
monochromatic
#08051A #170D47 #28167B #391FAF #4F31DA

Accessibility & contrast

On white

14.08
#28167B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#28167B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28167B
14.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28167B#FFFFFF#000000##FFFFFF
##28167B1.0014.081.4914.08
#FFFFFF14.081.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7E
Deuteranopia (green-blind)
#002779
Tritanopia (blue-blind)
#003549
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #28167b;
/* rgb */ color: rgb(40, 22, 123);
/* oklch */ color: oklch(30.8% 0.157 280.0);
Tailwind
colors: {
  custom: {
    50: '#6f57a2',
    500: '#28167b',
    950: '#000000',
  },
}
SCSS
$custom: #28167b;
$custom-light: #6f57a2;
$custom-dark: #000000;
JSON
{
  "hex": "#28167b",
  "rgb": {
    "r": 40,
    "g": 22,
    "b": 123
  },
  "hsl": {
    "h": 250.693,
    "s": 69.655,
    "l": 28.431
  },
  "oklch": {
    "l": 0.30792,
    "c": 0.15701,
    "h": 280
  },
  "luminance": 0.02455
}

Semantic roles & 50–950 ramp

primary
#28167B
secondary
#9CB03D
accent
#EC3BCD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #28167B

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

Preview Lab → · Contrast checker → · Palette generator →

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