#18042E#18042E

#18042E is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 17.9% C 0.080 H 300.8°. Best body text is #FFFFFF at 19.17:1 contrast (WCAG AA passes).

Color values

HEX#18042E
RGBrgb(24, 4, 46)
HSLhsl(269, 84%, 10%)
HSVhsv(269, 91%, 18%)
CMYKcmyk(47.8%, 91.3%, 0%, 82%)
CIE-LABlab(4.32, 18.70, -22.77)
CIE-LCHlch(4.32, 29.46, 309.40°)
OKLaboklab(17.85% 0.041 -0.0689)
OKLCHoklch(17.85% 0.08 300.8)
XYZxyz(0.9131, 0.4783, 2.6284)
Luminance0.0048 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18042E #1A2E04
analogous
#04052E #18042E #2D042E
triadic
#18042E #2E1804 #042E18
tetradic
#18042E #2E0405 #1A2E04 #042E2D
square
#18042E #2E0405 #1A2E04 #042E2D
split-complementary
#18042E #2E2D04 #052E04
monochromatic
#0F021C #0F021C #18042E #350966 #530E9F

Accessibility & contrast

On white

19.17
#18042E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18042E
19.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18042E#FFFFFF#000000##FFFFFF
##18042E1.0019.171.1019.17
#FFFFFF19.171.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F2F
Deuteranopia (green-blind)
#000F2D
Tritanopia (blue-blind)
#130E18
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #18042e;
/* rgb */ color: rgb(24, 4, 46);
/* oklch */ color: oklch(17.9% 0.080 300.8);
Tailwind
colors: {
  custom: {
    50: '#564867',
    500: '#18042e',
    950: '#000000',
  },
}
SCSS
$custom: #18042e;
$custom-light: #564867;
$custom-dark: #000000;
JSON
{
  "hex": "#18042e",
  "rgb": {
    "r": 24,
    "g": 4,
    "b": 46
  },
  "hsl": {
    "h": 268.571,
    "s": 84,
    "l": 9.804
  },
  "oklch": {
    "l": 0.17852,
    "c": 0.08015,
    "h": 300.8
  },
  "luminance": 0.00478
}

Semantic roles & 50–950 ramp

primary
#18042E
secondary
#49711D
accent
#FA2E99
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#030006
muted
#78777A

Preview Lab

Preview with #18042E

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

Preview Lab → · Contrast checker → · Palette generator →

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