#18072B#18072B

#18072B is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 18.2% C 0.070 H 301.6°. Best body text is #FFFFFF at 19.02:1 contrast (WCAG AA passes).

Color values

HEX#18072B
RGBrgb(24, 7, 43)
HSLhsl(268, 72%, 10%)
HSVhsv(268, 84%, 17%)
CMYKcmyk(44.2%, 83.7%, 0%, 83.1%)
CIE-LABlab(4.70, 16.10, -19.90)
CIE-LCHlch(4.70, 25.60, 308.97°)
OKLaboklab(18.15% 0.0366 -0.0596)
OKLCHoklch(18.15% 0.07 301.6)
XYZxyz(0.8886, 0.5206, 2.3387)
Luminance0.0052 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18072B #1A2B07
analogous
#07082B #18072B #2A072B
triadic
#18072B #2B1807 #072B18
tetradic
#18072B #2B0708 #1A2B07 #072B2A
square
#18072B #2B0708 #1A2B07 #072B2A
split-complementary
#18072B #2B2A07 #082B07
monochromatic
#0F041A #0F041A #18072B #351060 #531894

Accessibility & contrast

On white

19.02
#18072B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.10
#18072B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18072B
19.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18072B#FFFFFF#000000##FFFFFF
##18072B1.0019.021.1019.02
#FFFFFF19.021.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00102C
Deuteranopia (green-blind)
#00102A
Tritanopia (blue-blind)
#140F18
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #18072b;
/* rgb */ color: rgb(24, 7, 43);
/* oklch */ color: oklch(18.2% 0.070 301.6);
Tailwind
colors: {
  custom: {
    50: '#564964',
    500: '#18072b',
    950: '#000000',
  },
}
SCSS
$custom: #18072b;
$custom-light: #564964;
$custom-dark: #000000;
JSON
{
  "hex": "#18072b",
  "rgb": {
    "r": 24,
    "g": 7,
    "b": 43
  },
  "hsl": {
    "h": 268.333,
    "s": 72,
    "l": 9.804
  },
  "oklch": {
    "l": 0.18153,
    "c": 0.06995,
    "h": 301.6
  },
  "luminance": 0.00521
}

Semantic roles & 50–950 ramp

primary
#18072B
secondary
#496B23
accent
#EF3999
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#030105
muted
#78777A

Preview Lab

Preview with #18072B

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

Preview Lab → · Contrast checker → · Palette generator →

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