#28167F#28167F

#28167F is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.2% C 0.162 H 279.3°. Best body text is #FFFFFF at 13.89:1 contrast (WCAG AA passes).

Color values

HEX#28167F
RGBrgb(40, 22, 127)
HSLhsl(250, 70%, 29%)
HSVhsv(250, 83%, 50%)
CMYKcmyk(68.5%, 82.7%, 0%, 50.2%)
CIE-LABlab(18.17, 39.94, -55.34)
CIE-LCHlch(18.17, 68.25, 305.82°)
OKLaboklab(31.25% 0.0261 -0.1598)
OKLCHoklch(31.25% 0.162 279.3)
XYZxyz(4.9915, 2.5568, 20.3050)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28167F #6D7F16
analogous
#16397F #28167F #5D167F
triadic
#28167F #7F2816 #167F28
tetradic
#28167F #7F1639 #6D7F16 #167F5D
square
#28167F #7F1639 #6D7F16 #167F5D
split-complementary
#28167F #7F5D16 #397F16
monochromatic
#08051A #180D4B #28167F #381FB3 #5034DC

Accessibility & contrast

On white

13.89
#28167F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#28167F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28167F
13.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28167F#FFFFFF#000000##FFFFFF
##28167F1.0013.891.5113.89
#FFFFFF13.891.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003082
Deuteranopia (green-blind)
#00287D
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #28167f;
/* rgb */ color: rgb(40, 22, 127);
/* oklch */ color: oklch(31.2% 0.162 279.3);
Tailwind
colors: {
  custom: {
    50: '#7057a5',
    500: '#28167f',
    950: '#000000',
  },
}
SCSS
$custom: #28167f;
$custom-light: #7057a5;
$custom-dark: #000000;
JSON
{
  "hex": "#28167f",
  "rgb": {
    "r": 40,
    "g": 22,
    "b": 127
  },
  "hsl": {
    "h": 250.286,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31249,
    "c": 0.16193,
    "h": 279.3
  },
  "luminance": 0.02557
}

Semantic roles & 50–950 ramp

primary
#28167F
secondary
#9FB43D
accent
#ED3BCF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #28167F

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

Preview Lab → · Contrast checker → · Palette generator →

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