#28167E#28167E

#28167E is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.1% C 0.161 H 279.4°. Best body text is #FFFFFF at 13.94:1 contrast (WCAG AA passes).

Color values

HEX#28167E
RGBrgb(40, 22, 126)
HSLhsl(250, 70%, 29%)
HSVhsv(250, 83%, 49%)
CMYKcmyk(68.3%, 82.5%, 0%, 50.6%)
CIE-LABlab(18.06, 39.63, -54.90)
CIE-LCHlch(18.06, 67.71, 305.82°)
OKLaboklab(31.13% 0.0264 -0.1585)
OKLCHoklch(31.13% 0.161 279.4)
XYZxyz(4.9267, 2.5309, 19.9635)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28167E #6C7E16
analogous
#16387E #28167E #5C167E
triadic
#28167E #7E2816 #167E28
tetradic
#28167E #7E1638 #6C7E16 #167E5C
square
#28167E #7E1638 #6C7E16 #167E5C
split-complementary
#28167E #7E5C16 #387E16
monochromatic
#08051A #170D4A #28167E #391FB2 #5033DB

Accessibility & contrast

On white

13.94
#28167E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28167E
13.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28167E#FFFFFF#000000##FFFFFF
##28167E1.0013.941.5113.94
#FFFFFF13.941.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003081
Deuteranopia (green-blind)
#00287C
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #28167e;
/* rgb */ color: rgb(40, 22, 126);
/* oklch */ color: oklch(31.1% 0.161 279.4);
Tailwind
colors: {
  custom: {
    50: '#7057a5',
    500: '#28167e',
    950: '#000000',
  },
}
SCSS
$custom: #28167e;
$custom-light: #7057a5;
$custom-dark: #000000;
JSON
{
  "hex": "#28167e",
  "rgb": {
    "r": 40,
    "g": 22,
    "b": 126
  },
  "hsl": {
    "h": 250.385,
    "s": 70.27,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31134,
    "c": 0.1607,
    "h": 279.4
  },
  "luminance": 0.02531
}

Semantic roles & 50–950 ramp

primary
#28167E
secondary
#9EB33D
accent
#ED3BCE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #28167E

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

Preview Lab → · Contrast checker → · Palette generator →

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