#180728#180728

#180728 is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 17.9% C 0.066 H 304.4°. Best body text is #FFFFFF at 19.09:1 contrast (WCAG AA passes).

Color values

HEX#180728
RGBrgb(24, 7, 40)
HSLhsl(271, 70%, 9%)
HSVhsv(271, 83%, 16%)
CMYKcmyk(40%, 82.5%, 0%, 84.3%)
CIE-LABlab(4.51, 14.79, -17.92)
CIE-LCHlch(4.51, 23.23, 309.52°)
OKLaboklab(17.87% 0.0371 -0.0542)
OKLCHoklch(17.87% 0.066 304.4)
XYZxyz(0.8356, 0.4994, 2.0594)
Luminance0.0050 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180728 #172807
analogous
#080728 #180728 #280728
triadic
#180728 #281807 #072818
tetradic
#180728 #280807 #172807 #072828
square
#180728 #280807 #172807 #072828
split-complementary
#180728 #282807 #072808
monochromatic
#10051A #10051A #180728 #37105C #571990

Accessibility & contrast

On white

19.09
#180728 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.10
#180728 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180728
19.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180728#FFFFFF#000000##FFFFFF
##1807281.0019.091.1019.09
#FFFFFF19.091.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F29
Deuteranopia (green-blind)
#011027
Tritanopia (blue-blind)
#150E16
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #180728;
/* rgb */ color: rgb(24, 7, 40);
/* oklch */ color: oklch(17.9% 0.066 304.4);
Tailwind
colors: {
  custom: {
    50: '#554962',
    500: '#180728',
    950: '#000000',
  },
}
SCSS
$custom: #180728;
$custom-light: #554962;
$custom-dark: #000000;
JSON
{
  "hex": "#180728",
  "rgb": {
    "r": 24,
    "g": 7,
    "b": 40
  },
  "hsl": {
    "h": 270.909,
    "s": 70.213,
    "l": 9.216
  },
  "oklch": {
    "l": 0.17867,
    "c": 0.06568,
    "h": 304.4
  },
  "luminance": 0.00499
}

Semantic roles & 50–950 ramp

primary
#180728
secondary
#446823
accent
#ED3B91
background
#F5F4F5
surface
#E9E7EA
border
#C5C3C6
text
#030105
muted
#787779

Preview Lab

Preview with #180728

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

Preview Lab → · Contrast checker → · Palette generator →

#180728 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva