#18052A#18052A

#18052A is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 17.6% C 0.073 H 303.7°. Best body text is #FFFFFF at 19.20:1 contrast (WCAG AA passes).

Color values

HEX#18052A
RGBrgb(24, 5, 42)
HSLhsl(271, 79%, 9%)
HSVhsv(271, 88%, 16%)
CMYKcmyk(42.9%, 88.1%, 0%, 83.5%)
CIE-LABlab(4.24, 16.47, -19.86)
CIE-LCHlch(4.24, 25.81, 309.67°)
OKLaboklab(17.64% 0.0404 -0.0606)
OKLCHoklch(17.64% 0.073 303.7)
XYZxyz(0.8488, 0.4699, 2.2360)
Luminance0.0047 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18052A #172A05
analogous
#06052A #18052A #2A052A
triadic
#18052A #2A1805 #052A18
tetradic
#18052A #2A0605 #172A05 #052A2A
square
#18052A #2A0605 #172A05 #052A2A
split-complementary
#18052A #2A2A05 #052A06
monochromatic
#10031B #10031B #18052A #370C61 #571297

Accessibility & contrast

On white

19.20
#18052A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.09
#18052A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18052A
19.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18052A#FFFFFF#000000##FFFFFF
##18052A1.0019.201.0919.20
#FFFFFF19.201.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E2B
Deuteranopia (green-blind)
#000F29
Tritanopia (blue-blind)
#140D16
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #18052a;
/* rgb */ color: rgb(24, 5, 42);
/* oklch */ color: oklch(17.6% 0.073 303.7);
Tailwind
colors: {
  custom: {
    50: '#554864',
    500: '#18052a',
    950: '#000000',
  },
}
SCSS
$custom: #18052a;
$custom-light: #554864;
$custom-dark: #000000;
JSON
{
  "hex": "#18052a",
  "rgb": {
    "r": 24,
    "g": 5,
    "b": 42
  },
  "hsl": {
    "h": 270.811,
    "s": 78.723,
    "l": 9.216
  },
  "oklch": {
    "l": 0.17643,
    "c": 0.07279,
    "h": 303.7
  },
  "luminance": 0.0047
}

Semantic roles & 50–950 ramp

primary
#18052A
secondary
#446C1F
accent
#F53391
background
#F5F4F5
surface
#E9E6EA
border
#C5C2C6
text
#030005
muted
#787779

Preview Lab

Preview with #18052A

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

Preview Lab → · Contrast checker → · Palette generator →

#18052A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva