#18072F#18072F

#18072F is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 18.6% C 0.076 H 298.3°. Best body text is #FFFFFF at 18.92:1 contrast (WCAG AA passes).

Color values

HEX#18072F
RGBrgb(24, 7, 47)
HSLhsl(266, 74%, 11%)
HSVhsv(266, 85%, 18%)
CMYKcmyk(48.9%, 85.1%, 0%, 81.6%)
CIE-LABlab(4.98, 17.86, -22.47)
CIE-LCHlch(4.98, 28.70, 308.48°)
OKLaboklab(18.55% 0.0358 -0.0666)
OKLCHoklch(18.55% 0.076 298.3)
XYZxyz(0.9656, 0.5514, 2.7443)
Luminance0.0055 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18072F #1E2F07
analogous
#070A2F #18072F #2C072F
triadic
#18072F #2F1807 #072F18
tetradic
#18072F #2F070A #1E2F07 #072F2C
square
#18072F #2F070A #1E2F07 #072F2C
split-complementary
#18072F #2F2C07 #0A2F07
monochromatic
#0E041B #0E041B #18072F #330F64 #4E179A

Accessibility & contrast

On white

18.92
#18072F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18072F
18.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18072F#FFFFFF#000000##FFFFFF
##18072F1.0018.921.1118.92
#FFFFFF18.921.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001130
Deuteranopia (green-blind)
#00102E
Tritanopia (blue-blind)
#12111A
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #18072f;
/* rgb */ color: rgb(24, 7, 47);
/* oklch */ color: oklch(18.6% 0.076 298.3);
Tailwind
colors: {
  custom: {
    50: '#574968',
    500: '#18072f',
    950: '#000000',
  },
}
SCSS
$custom: #18072f;
$custom-light: #574968;
$custom-dark: #000000;
JSON
{
  "hex": "#18072f",
  "rgb": {
    "r": 24,
    "g": 7,
    "b": 47
  },
  "hsl": {
    "h": 265.5,
    "s": 74.074,
    "l": 10.588
  },
  "oklch": {
    "l": 0.18553,
    "c": 0.07558,
    "h": 298.3
  },
  "luminance": 0.00551
}

Semantic roles & 50–950 ramp

primary
#18072F
secondary
#4F6F23
accent
#F137A2
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#030106
muted
#78777A

Preview Lab

Preview with #18072F

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

Preview Lab → · Contrast checker → · Palette generator →

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