#18042A#18042A

#18042A is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 17.4% C 0.075 H 304.3°. Best body text is #FFFFFF at 19.27:1 contrast (WCAG AA passes).

Color values

HEX#18042A
RGBrgb(24, 4, 42)
HSLhsl(272, 83%, 9%)
HSVhsv(272, 90%, 16%)
CMYKcmyk(42.9%, 90.5%, 0%, 83.5%)
CIE-LABlab(4.05, 16.87, -20.17)
CIE-LCHlch(4.05, 26.30, 309.91°)
OKLaboklab(17.43% 0.0423 -0.062)
OKLCHoklch(17.43% 0.075 304.3)
XYZxyz(0.8379, 0.4482, 2.2324)
Luminance0.0045 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18042A #162A04
analogous
#05042A #18042A #2A0429
triadic
#18042A #2A1804 #042A18
tetradic
#18042A #2A0504 #162A04 #04292A
square
#18042A #2A0504 #162A04 #04292A
split-complementary
#18042A #292A04 #042A05
monochromatic
#10031C #10031C #18042A #380962 #580F9A

Accessibility & contrast

On white

19.27
#18042A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.09
#18042A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18042A
19.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18042A#FFFFFF#000000##FFFFFF
##18042A1.0019.271.0919.27
#FFFFFF19.271.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E2B
Deuteranopia (green-blind)
#000E29
Tritanopia (blue-blind)
#140C16
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #18042a;
/* rgb */ color: rgb(24, 4, 42);
/* oklch */ color: oklch(17.4% 0.075 304.3);
Tailwind
colors: {
  custom: {
    50: '#554864',
    500: '#18042a',
    950: '#000000',
  },
}
SCSS
$custom: #18042a;
$custom-light: #554864;
$custom-dark: #000000;
JSON
{
  "hex": "#18042a",
  "rgb": {
    "r": 24,
    "g": 4,
    "b": 42
  },
  "hsl": {
    "h": 271.579,
    "s": 82.609,
    "l": 9.02
  },
  "oklch": {
    "l": 0.17429,
    "c": 0.07504,
    "h": 304.3
  },
  "luminance": 0.00448
}

Semantic roles & 50–950 ramp

primary
#18042A
secondary
#436D1D
accent
#F92F8F
background
#F5F4F5
surface
#E9E6EA
border
#C5C2C6
text
#030005
muted
#787779

Preview Lab

Preview with #18042A

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

Preview Lab → · Contrast checker → · Palette generator →

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