#28164A#28164A

#28164A is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.7% C 0.092 H 295.1°. Best body text is #FFFFFF at 16.11:1 contrast (WCAG AA passes).

Color values

HEX#28164A
RGBrgb(40, 22, 74)
HSLhsl(261, 54%, 19%)
HSVhsv(261, 70%, 29%)
CMYKcmyk(45.9%, 70.3%, 0%, 71%)
CIE-LABlab(12.73, 22.80, -29.20)
CIE-LCHlch(12.73, 37.05, 307.98°)
OKLaboklab(25.75% 0.039 -0.0833)
OKLCHoklch(25.75% 0.092 295.1)
XYZxyz(2.3977, 1.5193, 6.6442)
Luminance0.0152 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28164A #384A16
analogous
#161E4A #28164A #42164A
triadic
#28164A #4A2816 #164A28
tetradic
#28164A #4A161E #384A16 #164A42
square
#28164A #4A161E #384A16 #164A42
split-complementary
#28164A #4A4216 #1E4A16
monochromatic
#0D0718 #0F081B #28164A #422479 #5B32A8

Accessibility & contrast

On white

16.11
#28164A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#28164A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28164A
16.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28164A#FFFFFF#000000##FFFFFF
##28164A1.0016.111.3016.11
#FFFFFF16.111.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00214C
Deuteranopia (green-blind)
#002049
Tritanopia (blue-blind)
#1F222D
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #28164a;
/* rgb */ color: rgb(40, 22, 74);
/* oklch */ color: oklch(25.7% 0.092 295.1);
Tailwind
colors: {
  custom: {
    50: '#65547d',
    500: '#28164a',
    950: '#000000',
  },
}
SCSS
$custom: #28164a;
$custom-light: #65547d;
$custom-dark: #000000;
JSON
{
  "hex": "#28164a",
  "rgb": {
    "r": 40,
    "g": 22,
    "b": 74
  },
  "hsl": {
    "h": 260.769,
    "s": 54.167,
    "l": 18.824
  },
  "oklch": {
    "l": 0.25749,
    "c": 0.09196,
    "h": 295.1
  },
  "luminance": 0.01519
}

Semantic roles & 50–950 ramp

primary
#28164A
secondary
#69823A
accent
#DE4AAB
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060309
muted
#7A787B

Preview Lab

Preview with #28164A

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

Preview Lab → · Contrast checker → · Palette generator →

#28164A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva