#18043A#18043A

#18043A is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 19.2% C 0.095 H 292.3°. Best body text is #FFFFFF at 18.79:1 contrast (WCAG AA passes).

Color values

HEX#18043A
RGBrgb(24, 4, 58)
HSLhsl(262, 87%, 12%)
HSVhsv(262, 93%, 23%)
CMYKcmyk(58.6%, 93.1%, 0%, 77.3%)
CIE-LABlab(5.30, 24.09, -30.06)
CIE-LCHlch(5.30, 38.52, 308.71°)
OKLaboklab(19.22% 0.0362 -0.0882)
OKLCHoklch(19.22% 0.095 292.3)
XYZxyz(1.1836, 0.5865, 4.0530)
Luminance0.0059 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18043A #263A04
analogous
#040B3A #18043A #33043A
triadic
#18043A #3A1804 #043A18
tetradic
#18043A #3A040B #263A04 #043A33
square
#18043A #3A040B #263A04 #043A33
split-complementary
#18043A #3A3304 #0B3A04
monochromatic
#0C021D #0C021D #18043A #300873 #470CAD

Accessibility & contrast

On white

18.79
#18043A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#18043A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18043A
18.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18043A#FFFFFF#000000##FFFFFF
##18043A1.0018.791.1218.79
#FFFFFF18.791.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00123B
Deuteranopia (green-blind)
#001039
Tritanopia (blue-blind)
#0C131F
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #18043a;
/* rgb */ color: rgb(24, 4, 58);
/* oklch */ color: oklch(19.2% 0.095 292.3);
Tailwind
colors: {
  custom: {
    50: '#594771',
    500: '#18043a',
    950: '#000000',
  },
}
SCSS
$custom: #18043a;
$custom-light: #594771;
$custom-dark: #000000;
JSON
{
  "hex": "#18043a",
  "rgb": {
    "r": 24,
    "g": 4,
    "b": 58
  },
  "hsl": {
    "h": 262.222,
    "s": 87.097,
    "l": 12.157
  },
  "oklch": {
    "l": 0.19222,
    "c": 0.09536,
    "h": 292.3
  },
  "luminance": 0.00587
}

Semantic roles & 50–950 ramp

primary
#18043A
secondary
#597C1E
accent
#FD2BAF
background
#F5F4F6
surface
#E9E6EC
border
#C5C2C7
text
#040007
muted
#79777A

Preview Lab

Preview with #18043A

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

Preview Lab → · Contrast checker → · Palette generator →

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