#28073A#28073A

#28073A is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 22.1% C 0.094 H 310.3°. Best body text is #FFFFFF at 17.77:1 contrast (WCAG AA passes).

Color values

HEX#28073A
RGBrgb(40, 7, 58)
HSLhsl(279, 78%, 13%)
HSVhsv(279, 88%, 23%)
CMYKcmyk(31%, 87.9%, 0%, 77.3%)
CIE-LABlab(8.21, 26.80, -25.23)
CIE-LCHlch(8.21, 36.81, 316.72°)
OKLaboklab(22.07% 0.0607 -0.0715)
OKLCHoklch(22.07% 0.094 310.3)
XYZxyz(1.7146, 0.9086, 4.0872)
Luminance0.0091 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28073A #193A07
analogous
#0F073A #28073A #3A0732
triadic
#28073A #3A2807 #073A28
tetradic
#28073A #3A0F07 #193A07 #07323A
square
#28073A #3A0F07 #193A07 #07323A
split-complementary
#28073A #323A07 #073A0F
monochromatic
#13031B #13031B #28073A #4E0E71 #7314A7

Accessibility & contrast

On white

17.77
#28073A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#28073A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28073A
17.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28073A#FFFFFF#000000##FFFFFF
##28073A1.0017.771.1817.77
#FFFFFF17.771.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00173B
Deuteranopia (green-blind)
#001839
Tritanopia (blue-blind)
#251320
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #28073a;
/* rgb */ color: rgb(40, 7, 58);
/* oklch */ color: oklch(22.1% 0.094 310.3);
Tailwind
colors: {
  custom: {
    50: '#654a70',
    500: '#28073a',
    950: '#000000',
  },
}
SCSS
$custom: #28073a;
$custom-light: #654a70;
$custom-dark: #000000;
JSON
{
  "hex": "#28073a",
  "rgb": {
    "r": 40,
    "g": 7,
    "b": 58
  },
  "hsl": {
    "h": 278.824,
    "s": 78.462,
    "l": 12.745
  },
  "oklch": {
    "l": 0.22072,
    "c": 0.09382,
    "h": 310.3
  },
  "luminance": 0.00909
}

Semantic roles & 50–950 ramp

primary
#28073A
secondary
#427923
accent
#F53377
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060107
muted
#7A777A

Preview Lab

Preview with #28073A

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

Preview Lab → · Contrast checker → · Palette generator →

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