#18042F#18042F

#18042F is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 18.0% C 0.081 H 299.9°. Best body text is #FFFFFF at 19.14:1 contrast (WCAG AA passes).

Color values

HEX#18042F
RGBrgb(24, 4, 47)
HSLhsl(268, 84%, 10%)
HSVhsv(268, 91%, 18%)
CMYKcmyk(48.9%, 91.5%, 0%, 81.6%)
CIE-LABlab(4.39, 19.17, -23.40)
CIE-LCHlch(4.39, 30.25, 309.31°)
OKLaboklab(17.96% 0.0406 -0.0706)
OKLCHoklch(17.96% 0.081 299.9)
XYZxyz(0.9331, 0.4862, 2.7335)
Luminance0.0049 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18042F #1B2F04
analogous
#04052F #18042F #2E042F
triadic
#18042F #2F1804 #042F18
tetradic
#18042F #2F0405 #1B2F04 #042F2E
square
#18042F #2F0405 #1B2F04 #042F2E
split-complementary
#18042F #2F2E04 #052F04
monochromatic
#0E021C #0E021C #18042F #350967 #520EA0

Accessibility & contrast

On white

19.14
#18042F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.10
#18042F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18042F
19.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18042F#FFFFFF#000000##FFFFFF
##18042F1.0019.141.1019.14
#FFFFFF19.141.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F30
Deuteranopia (green-blind)
#000F2E
Tritanopia (blue-blind)
#130F19
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #18042f;
/* rgb */ color: rgb(24, 4, 47);
/* oklch */ color: oklch(18.0% 0.081 299.9);
Tailwind
colors: {
  custom: {
    50: '#564868',
    500: '#18042f',
    950: '#000000',
  },
}
SCSS
$custom: #18042f;
$custom-light: #564868;
$custom-dark: #000000;
JSON
{
  "hex": "#18042f",
  "rgb": {
    "r": 24,
    "g": 4,
    "b": 47
  },
  "hsl": {
    "h": 267.907,
    "s": 84.314,
    "l": 10
  },
  "oklch": {
    "l": 0.17961,
    "c": 0.08142,
    "h": 299.9
  },
  "luminance": 0.00486
}

Semantic roles & 50–950 ramp

primary
#18042F
secondary
#4A721D
accent
#FB2D9B
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#030006
muted
#78777A

Preview Lab

Preview with #18042F

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

Preview Lab → · Contrast checker → · Palette generator →

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