#28073B#28073B

#28073B is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 22.2% C 0.095 H 309.5°. Best body text is #FFFFFF at 17.74:1 contrast (WCAG AA passes).

Color values

HEX#28073B
RGBrgb(40, 7, 59)
HSLhsl(278, 79%, 13%)
HSVhsv(278, 88%, 23%)
CMYKcmyk(32.2%, 88.1%, 0%, 76.9%)
CIE-LABlab(8.30, 27.06, -25.81)
CIE-LCHlch(8.30, 37.39, 316.36°)
OKLaboklab(22.17% 0.0605 -0.0732)
OKLCHoklch(22.17% 0.095 309.5)
XYZxyz(1.7403, 0.9189, 4.2225)
Luminance0.0092 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28073B #1A3B07
analogous
#0E073B #28073B #3B0734
triadic
#28073B #3B2807 #073B28
tetradic
#28073B #3B0E07 #1A3B07 #07343B
square
#28073B #3B0E07 #1A3B07 #07343B
split-complementary
#28073B #343B07 #073B0E
monochromatic
#13031B #13031B #28073B #4D0D72 #7214A8

Accessibility & contrast

On white

17.74
#28073B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28073B
17.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28073B#FFFFFF#000000##FFFFFF
##28073B1.0017.741.1817.74
#FFFFFF17.741.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00173C
Deuteranopia (green-blind)
#00193A
Tritanopia (blue-blind)
#251421
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #28073b;
/* rgb */ color: rgb(40, 7, 59);
/* oklch */ color: oklch(22.2% 0.095 309.5);
Tailwind
colors: {
  custom: {
    50: '#654a71',
    500: '#28073b',
    950: '#000000',
  },
}
SCSS
$custom: #28073b;
$custom-light: #654a71;
$custom-dark: #000000;
JSON
{
  "hex": "#28073b",
  "rgb": {
    "r": 40,
    "g": 7,
    "b": 59
  },
  "hsl": {
    "h": 278.077,
    "s": 78.788,
    "l": 12.941
  },
  "oklch": {
    "l": 0.22165,
    "c": 0.09496,
    "h": 309.5
  },
  "luminance": 0.00919
}

Semantic roles & 50–950 ramp

primary
#28073B
secondary
#437A23
accent
#F5337A
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060108
muted
#7A777B

Preview Lab

Preview with #28073B

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

Preview Lab → · Contrast checker → · Palette generator →

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