#18112E#18112E

#18112E is a very dark, muted violet. Relative luminance 0.008; OKLCH L 20.4% C 0.056 H 291.8°. Best body text is #FFFFFF at 18.13:1 contrast (WCAG AA passes).

Color values

HEX#18112E
RGBrgb(24, 17, 46)
HSLhsl(254, 46%, 12%)
HSVhsv(254, 63%, 18%)
CMYKcmyk(47.8%, 63%, 0%, 82%)
CIE-LABlab(7.16, 12.25, -18.26)
CIE-LCHlch(7.16, 21.99, 303.86°)
OKLaboklab(20.44% 0.0208 -0.0519)
OKLCHoklch(20.44% 0.056 291.8)
XYZxyz(1.0701, 0.7923, 2.6808)
Luminance0.0079 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18112E #272E11
analogous
#11182E #18112E #27112E
triadic
#18112E #2E1811 #112E18
tetradic
#18112E #2E1118 #272E11 #112E27
square
#18112E #2E1118 #272E11 #112E27
split-complementary
#18112E #2E2711 #182E11
monochromatic
#0C0816 #0C0816 #18112E #2F225B #473287

Accessibility & contrast

On white

18.13
#18112E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#18112E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18112E
18.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18112E#FFFFFF#000000##FFFFFF
##18112E1.0018.131.1618.13
#FFFFFF18.131.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#06162F
Deuteranopia (green-blind)
#06152D
Tritanopia (blue-blind)
#12171D
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #18112e;
/* rgb */ color: rgb(24, 17, 46);
/* oklch */ color: oklch(20.4% 0.056 291.8);
Tailwind
colors: {
  custom: {
    50: '#564f67',
    500: '#18112e',
    950: '#000000',
  },
}
SCSS
$custom: #18112e;
$custom-light: #564f67;
$custom-dark: #000000;
JSON
{
  "hex": "#18112e",
  "rgb": {
    "r": 24,
    "g": 17,
    "b": 46
  },
  "hsl": {
    "h": 254.483,
    "s": 46.032,
    "l": 12.353
  },
  "oklch": {
    "l": 0.20443,
    "c": 0.0559,
    "h": 291.8
  },
  "luminance": 0.00792
}

Semantic roles & 50–950 ramp

primary
#18112E
secondary
#5A6634
accent
#D652B6
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#030106
muted
#78777A

Preview Lab

Preview with #18112E

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

Preview Lab → · Contrast checker → · Palette generator →

#18112E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva