#180428#180428

#180428 is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 17.2% C 0.072 H 306.2°. Best body text is #FFFFFF at 19.32:1 contrast (WCAG AA passes).

Color values

HEX#180428
RGBrgb(24, 4, 40)
HSLhsl(273, 82%, 9%)
HSVhsv(273, 90%, 16%)
CMYKcmyk(40%, 90%, 0%, 84.3%)
CIE-LABlab(3.92, 15.99, -18.85)
CIE-LCHlch(3.92, 24.71, 310.31°)
OKLaboklab(17.22% 0.0428 -0.0585)
OKLCHoklch(17.22% 0.072 306.2)
XYZxyz(0.8030, 0.4342, 2.0486)
Luminance0.0043 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180428 #142804
analogous
#060428 #180428 #280426
triadic
#180428 #281804 #042818
tetradic
#180428 #280604 #142804 #042628
square
#180428 #280604 #142804 #042628
split-complementary
#180428 #262804 #042806
monochromatic
#11031C #11031C #180428 #390A60 #5B0F97

Accessibility & contrast

On white

19.32
#180428 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.09
#180428 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180428
19.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180428#FFFFFF#000000##FFFFFF
##1804281.0019.321.0919.32
#FFFFFF19.321.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000D29
Deuteranopia (green-blind)
#000E27
Tritanopia (blue-blind)
#150C15
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #180428;
/* rgb */ color: rgb(24, 4, 40);
/* oklch */ color: oklch(17.2% 0.072 306.2);
Tailwind
colors: {
  custom: {
    50: '#554862',
    500: '#180428',
    950: '#000000',
  },
}
SCSS
$custom: #180428;
$custom-light: #554862;
$custom-dark: #000000;
JSON
{
  "hex": "#180428",
  "rgb": {
    "r": 24,
    "g": 4,
    "b": 40
  },
  "hsl": {
    "h": 273.333,
    "s": 81.818,
    "l": 8.627
  },
  "oklch": {
    "l": 0.17225,
    "c": 0.07249,
    "h": 306.2
  },
  "luminance": 0.00434
}

Semantic roles & 50–950 ramp

primary
#180428
secondary
#406B1D
accent
#F83089
background
#F5F4F5
surface
#E9E6EA
border
#C5C2C6
text
#030005
muted
#787779

Preview Lab

Preview with #180428

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

Preview Lab → · Contrast checker → · Palette generator →

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