#18102A#18102A

#18102A is a very dark, muted violet. Relative luminance 0.007; OKLCH L 19.9% C 0.051 H 295.6°. Best body text is #FFFFFF at 18.32:1 contrast (WCAG AA passes).

Color values

HEX#18102A
RGBrgb(24, 16, 42)
HSLhsl(258, 45%, 11%)
HSVhsv(258, 62%, 16%)
CMYKcmyk(42.9%, 61.9%, 0%, 83.5%)
CIE-LABlab(6.61, 11.36, -16.14)
CIE-LCHlch(6.61, 19.73, 305.13°)
OKLaboklab(19.9% 0.022 -0.046)
OKLCHoklch(19.9% 0.051 295.6)
XYZxyz(0.9798, 0.7319, 2.2797)
Luminance0.0073 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18102A #222A10
analogous
#10152A #18102A #25102A
triadic
#18102A #2A1810 #102A18
tetradic
#18102A #2A1015 #222A10 #102A25
square
#18102A #2A1015 #222A10 #102A25
split-complementary
#18102A #2A2510 #152A10
monochromatic
#0D0816 #0D0816 #18102A #312156 #4B3283

Accessibility & contrast

On white

18.32
#18102A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#18102A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18102A
18.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18102A#FFFFFF#000000##FFFFFF
##18102A1.0018.321.1518.32
#FFFFFF18.321.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#07152B
Deuteranopia (green-blind)
#081429
Tritanopia (blue-blind)
#14151B
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #18102a;
/* rgb */ color: rgb(24, 16, 42);
/* oklch */ color: oklch(19.9% 0.051 295.6);
Tailwind
colors: {
  custom: {
    50: '#564e63',
    500: '#18102a',
    950: '#000000',
  },
}
SCSS
$custom: #18102a;
$custom-light: #564e63;
$custom-dark: #000000;
JSON
{
  "hex": "#18102a",
  "rgb": {
    "r": 24,
    "g": 16,
    "b": 42
  },
  "hsl": {
    "h": 258.462,
    "s": 44.828,
    "l": 11.373
  },
  "oklch": {
    "l": 0.19896,
    "c": 0.05099,
    "h": 295.6
  },
  "luminance": 0.00732
}

Semantic roles & 50–950 ramp

primary
#18102A
secondary
#546233
accent
#D553AD
background
#F5F4F5
surface
#E9E7EA
border
#C5C3C6
text
#030105
muted
#787779

Preview Lab

Preview with #18102A

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

Preview Lab → · Contrast checker → · Palette generator →

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