#28073E#28073E

#28073E is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.4% C 0.098 H 307.3°. Best body text is #FFFFFF at 17.64:1 contrast (WCAG AA passes).

Color values

HEX#28073E
RGBrgb(40, 7, 62)
HSLhsl(276, 80%, 14%)
HSVhsv(276, 89%, 24%)
CMYKcmyk(35.5%, 88.7%, 0%, 75.7%)
CIE-LABlab(8.58, 27.85, -27.51)
CIE-LCHlch(8.58, 39.14, 315.35°)
OKLaboklab(22.45% 0.0597 -0.0782)
OKLCHoklch(22.45% 0.098 307.3)
XYZxyz(1.8204, 0.9509, 4.6441)
Luminance0.0095 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28073E #1D3E07
analogous
#0C073E #28073E #3E0738
triadic
#28073E #3E2807 #073E28
tetradic
#28073E #3E0C07 #1D3E07 #07383E
square
#28073E #3E0C07 #1D3E07 #07383E
split-complementary
#28073E #383E07 #073E0C
monochromatic
#12031B #12031B #28073E #4B0D75 #6F13AC

Accessibility & contrast

On white

17.64
#28073E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#28073E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28073E
17.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28073E#FFFFFF#000000##FFFFFF
##28073E1.0017.641.1917.64
#FFFFFF17.641.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001840
Deuteranopia (green-blind)
#00193D
Tritanopia (blue-blind)
#241522
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #28073e;
/* rgb */ color: rgb(40, 7, 62);
/* oklch */ color: oklch(22.4% 0.098 307.3);
Tailwind
colors: {
  custom: {
    50: '#654b74',
    500: '#28073e',
    950: '#000000',
  },
}
SCSS
$custom: #28073e;
$custom-light: #654b74;
$custom-dark: #000000;
JSON
{
  "hex": "#28073e",
  "rgb": {
    "r": 40,
    "g": 7,
    "b": 62
  },
  "hsl": {
    "h": 276,
    "s": 79.71,
    "l": 13.529
  },
  "oklch": {
    "l": 0.22448,
    "c": 0.09837,
    "h": 307.3
  },
  "luminance": 0.00951
}

Semantic roles & 50–950 ramp

primary
#28073E
secondary
#477D24
accent
#F63280
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #28073E

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

Preview Lab → · Contrast checker → · Palette generator →

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