#18113B#18113B

#18113B is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 21.6% C 0.077 H 285.6°. Best body text is #FFFFFF at 17.76:1 contrast (WCAG AA passes).

Color values

HEX#18113B
RGBrgb(24, 17, 59)
HSLhsl(250, 55%, 15%)
HSVhsv(250, 71%, 23%)
CMYKcmyk(59.3%, 71.2%, 0%, 76.9%)
CIE-LABlab(8.23, 17.16, -26.03)
CIE-LCHlch(8.23, 31.17, 303.39°)
OKLaboklab(21.6% 0.0208 -0.0746)
OKLCHoklch(21.6% 0.077 285.6)
XYZxyz(1.3663, 0.9108, 4.2406)
Luminance0.0091 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18113B #343B11
analogous
#111F3B #18113B #2D113B
triadic
#18113B #3B1811 #113B18
tetradic
#18113B #3B111F #343B11 #113B2D
square
#18113B #3B111F #343B11 #113B2D
split-complementary
#18113B #3B2D11 #1F3B11
monochromatic
#0A0718 #0A0718 #18113B #2B1F6B #3F2C9A

Accessibility & contrast

On white

17.76
#18113B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#18113B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18113B
17.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18113B#FFFFFF#000000##FFFFFF
##18113B1.0017.761.1817.76
#FFFFFF17.761.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00193C
Deuteranopia (green-blind)
#00173A
Tritanopia (blue-blind)
#0B1B23
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #18113b;
/* rgb */ color: rgb(24, 17, 59);
/* oklch */ color: oklch(21.6% 0.077 285.6);
Tailwind
colors: {
  custom: {
    50: '#594f71',
    500: '#18113b',
    950: '#000000',
  },
}
SCSS
$custom: #18113b;
$custom-light: #594f71;
$custom-dark: #000000;
JSON
{
  "hex": "#18113b",
  "rgb": {
    "r": 24,
    "g": 17,
    "b": 59
  },
  "hsl": {
    "h": 250,
    "s": 55.263,
    "l": 14.902
  },
  "oklch": {
    "l": 0.21604,
    "c": 0.07742,
    "h": 285.6
  },
  "luminance": 0.00911
}

Semantic roles & 50–950 ramp

primary
#18113B
secondary
#6A7433
accent
#DF49C6
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#040208
muted
#79787B

Preview Lab

Preview with #18113B

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

Preview Lab → · Contrast checker → · Palette generator →

#18113B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva