#18042B#18042B

#18042B is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 17.5% C 0.076 H 303.4°. Best body text is #FFFFFF at 19.25:1 contrast (WCAG AA passes).

Color values

HEX#18042B
RGBrgb(24, 4, 43)
HSLhsl(271, 83%, 9%)
HSVhsv(271, 91%, 17%)
CMYKcmyk(44.2%, 90.7%, 0%, 83.1%)
CIE-LABlab(4.11, 17.33, -20.83)
CIE-LCHlch(4.11, 27.10, 309.76°)
OKLaboklab(17.53% 0.042 -0.0637)
OKLCHoklch(17.53% 0.076 303.4)
XYZxyz(0.8560, 0.4554, 2.3278)
Luminance0.0046 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18042B #172B04
analogous
#04042B #18042B #2B042B
triadic
#18042B #2B1804 #042B18
tetradic
#18042B #2B0404 #172B04 #042B2B
square
#18042B #2B0404 #172B04 #042B2B
split-complementary
#18042B #2B2B04 #042B04
monochromatic
#10031C #10031C #18042B #370963 #570E9B

Accessibility & contrast

On white

19.25
#18042B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.09
#18042B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18042B
19.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18042B#FFFFFF#000000##FFFFFF
##18042B1.0019.251.0919.25
#FFFFFF19.251.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E2C
Deuteranopia (green-blind)
#000E2A
Tritanopia (blue-blind)
#140D16
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #18042b;
/* rgb */ color: rgb(24, 4, 43);
/* oklch */ color: oklch(17.5% 0.076 303.4);
Tailwind
colors: {
  custom: {
    50: '#564864',
    500: '#18042b',
    950: '#000000',
  },
}
SCSS
$custom: #18042b;
$custom-light: #564864;
$custom-dark: #000000;
JSON
{
  "hex": "#18042b",
  "rgb": {
    "r": 24,
    "g": 4,
    "b": 43
  },
  "hsl": {
    "h": 270.769,
    "s": 82.979,
    "l": 9.216
  },
  "oklch": {
    "l": 0.17533,
    "c": 0.07633,
    "h": 303.4
  },
  "luminance": 0.00455
}

Semantic roles & 50–950 ramp

primary
#18042B
secondary
#446E1D
accent
#F92E91
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#030005
muted
#78777A

Preview Lab

Preview with #18042B

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

Preview Lab → · Contrast checker → · Palette generator →

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