#18072C#18072C

#18072C is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 18.3% C 0.071 H 300.7°. Best body text is #FFFFFF at 18.99:1 contrast (WCAG AA passes).

Color values

HEX#18072C
RGBrgb(24, 7, 44)
HSLhsl(268, 73%, 10%)
HSVhsv(268, 84%, 17%)
CMYKcmyk(45.5%, 84.1%, 0%, 82.7%)
CIE-LABlab(4.77, 16.54, -20.55)
CIE-LCHlch(4.77, 26.38, 308.83°)
OKLaboklab(18.25% 0.0364 -0.0614)
OKLCHoklch(18.25% 0.071 300.7)
XYZxyz(0.9072, 0.5280, 2.4365)
Luminance0.0053 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18072C #1B2C07
analogous
#07082C #18072C #2B072C
triadic
#18072C #2C1807 #072C18
tetradic
#18072C #2C0708 #1B2C07 #072C2B
square
#18072C #2C0708 #1B2C07 #072C2B
split-complementary
#18072C #2C2B07 #082C07
monochromatic
#0E041A #0E041A #18072C #350F61 #521896

Accessibility & contrast

On white

18.99
#18072C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#18072C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18072C
18.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18072C#FFFFFF#000000##FFFFFF
##18072C1.0018.991.1118.99
#FFFFFF18.991.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00102D
Deuteranopia (green-blind)
#00102B
Tritanopia (blue-blind)
#141018
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #18072c;
/* rgb */ color: rgb(24, 7, 44);
/* oklch */ color: oklch(18.3% 0.071 300.7);
Tailwind
colors: {
  custom: {
    50: '#564965',
    500: '#18072c',
    950: '#000000',
  },
}
SCSS
$custom: #18072c;
$custom-light: #564965;
$custom-dark: #000000;
JSON
{
  "hex": "#18072c",
  "rgb": {
    "r": 24,
    "g": 7,
    "b": 44
  },
  "hsl": {
    "h": 267.568,
    "s": 72.549,
    "l": 10
  },
  "oklch": {
    "l": 0.18251,
    "c": 0.07136,
    "h": 300.7
  },
  "luminance": 0.00528
}

Semantic roles & 50–950 ramp

primary
#18072C
secondary
#4A6C23
accent
#EF399B
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#030105
muted
#78777A

Preview Lab

Preview with #18072C

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

Preview Lab → · Contrast checker → · Palette generator →

#18072C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva