#18112F#18112F

#18112F is a very dark, muted violet. Relative luminance 0.008; OKLCH L 20.5% C 0.058 H 291.2°. Best body text is #FFFFFF at 18.10:1 contrast (WCAG AA passes).

Color values

HEX#18112F
RGBrgb(24, 17, 47)
HSLhsl(254, 47%, 13%)
HSVhsv(254, 64%, 18%)
CMYKcmyk(48.9%, 63.8%, 0%, 81.6%)
CIE-LABlab(7.23, 12.63, -18.88)
CIE-LCHlch(7.23, 22.72, 303.78°)
OKLaboklab(20.53% 0.0209 -0.0537)
OKLCHoklch(20.53% 0.058 291.2)
XYZxyz(1.0901, 0.8003, 2.7858)
Luminance0.0080 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18112F #282F11
analogous
#11192F #18112F #27112F
triadic
#18112F #2F1811 #112F18
tetradic
#18112F #2F1119 #282F11 #112F27
square
#18112F #2F1119 #282F11 #112F27
split-complementary
#18112F #2F2711 #192F11
monochromatic
#0B0816 #0B0816 #18112F #2F215C #463289

Accessibility & contrast

On white

18.10
#18112F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18112F
18.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18112F#FFFFFF#000000##FFFFFF
##18112F1.0018.101.1618.10
#FFFFFF18.101.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.101.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #18112f;
/* rgb */ color: rgb(24, 17, 47);
/* oklch */ color: oklch(20.5% 0.058 291.2);
Tailwind
colors: {
  custom: {
    50: '#564f68',
    500: '#18112f',
    950: '#000000',
  },
}
SCSS
$custom: #18112f;
$custom-light: #564f68;
$custom-dark: #000000;
JSON
{
  "hex": "#18112f",
  "rgb": {
    "r": 24,
    "g": 17,
    "b": 47
  },
  "hsl": {
    "h": 254,
    "s": 46.875,
    "l": 12.549
  },
  "oklch": {
    "l": 0.20526,
    "c": 0.05761,
    "h": 291.2
  },
  "luminance": 0.008
}

Semantic roles & 50–950 ramp

primary
#18112F
secondary
#5C6734
accent
#D751B7
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#030106
muted
#78777A

Preview Lab

Preview with #18112F

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

Preview Lab → · Contrast checker → · Palette generator →

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