#18142A#18142A

#18142A is a very dark, muted violet. Relative luminance 0.009; OKLCH L 20.8% C 0.043 H 290.5°. Best body text is #FFFFFF at 17.91:1 contrast (WCAG AA passes).

Color values

HEX#18142A
RGBrgb(24, 20, 42)
HSLhsl(251, 35%, 12%)
HSVhsv(251, 52%, 16%)
CMYKcmyk(42.9%, 52.4%, 0%, 83.5%)
CIE-LABlab(7.78, 8.66, -14.29)
CIE-LCHlch(7.78, 16.71, 301.21°)
OKLaboklab(20.84% 0.015 -0.0401)
OKLCHoklch(20.84% 0.043 290.5)
XYZxyz(1.0447, 0.8616, 2.3013)
Luminance0.0086 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18142A #262A14
analogous
#141B2A #18142A #23142A
triadic
#18142A #2A1814 #142A18
tetradic
#18142A #2A141B #262A14 #142A23
square
#18142A #2A141B #262A14 #142A23
split-complementary
#18142A #2A2314 #1B2A14
monochromatic
#0C0A15 #0C0A15 #18142A #302853 #473B7D

Accessibility & contrast

On white

17.91
#18142A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#18142A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18142A
17.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18142A#FFFFFF#000000##FFFFFF
##18142A1.0017.911.1717.91
#FFFFFF17.911.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D172B
Deuteranopia (green-blind)
#0D1729
Tritanopia (blue-blind)
#14181C
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #18142a;
/* rgb */ color: rgb(24, 20, 42);
/* oklch */ color: oklch(20.8% 0.043 290.5);
Tailwind
colors: {
  custom: {
    50: '#565163',
    500: '#18142a',
    950: '#000000',
  },
}
SCSS
$custom: #18142a;
$custom-light: #565163;
$custom-dark: #000000;
JSON
{
  "hex": "#18142a",
  "rgb": {
    "r": 24,
    "g": 20,
    "b": 42
  },
  "hsl": {
    "h": 250.909,
    "s": 35.484,
    "l": 12.157
  },
  "oklch": {
    "l": 0.20844,
    "c": 0.04287,
    "h": 290.5
  },
  "luminance": 0.00862
}

Semantic roles & 50–950 ramp

primary
#18142A
secondary
#59603A
accent
#CC5CB7
background
#F5F4F5
surface
#E9E7EA
border
#C5C3C6
text
#030205
muted
#787879

Preview Lab

Preview with #18142A

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

Preview Lab → · Contrast checker → · Palette generator →

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