#18043F#18043F

#18043F is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 19.8% C 0.102 H 289.5°. Best body text is #FFFFFF at 18.62:1 contrast (WCAG AA passes).

Color values

HEX#18043F
RGBrgb(24, 4, 63)
HSLhsl(260, 88%, 13%)
HSVhsv(260, 94%, 25%)
CMYKcmyk(61.9%, 93.7%, 0%, 75.3%)
CIE-LABlab(5.78, 26.22, -32.88)
CIE-LCHlch(5.78, 42.06, 308.56°)
OKLaboklab(19.83% 0.0339 -0.0958)
OKLCHoklch(19.83% 0.102 289.5)
XYZxyz(1.3170, 0.6398, 4.7558)
Luminance0.0064 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18043F #2B3F04
analogous
#040D3F #18043F #35043F
triadic
#18043F #3F1804 #043F18
tetradic
#18043F #3F040D #2B3F04 #043F35
square
#18043F #3F040D #2B3F04 #043F35
split-complementary
#18043F #3F3504 #0D3F04
monochromatic
#0B021D #0B021D #18043F #2E0879 #440BB2

Accessibility & contrast

On white

18.62
#18043F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#18043F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18043F
18.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18043F#FFFFFF#000000##FFFFFF
##18043F1.0018.621.1318.62
#FFFFFF18.621.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001441
Deuteranopia (green-blind)
#00113E
Tritanopia (blue-blind)
#081522
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #18043f;
/* rgb */ color: rgb(24, 4, 63);
/* oklch */ color: oklch(19.8% 0.102 289.5);
Tailwind
colors: {
  custom: {
    50: '#5b4775',
    500: '#18043f',
    950: '#000000',
  },
}
SCSS
$custom: #18043f;
$custom-light: #5b4775;
$custom-dark: #000000;
JSON
{
  "hex": "#18043f",
  "rgb": {
    "r": 24,
    "g": 4,
    "b": 63
  },
  "hsl": {
    "h": 260.339,
    "s": 88.06,
    "l": 13.137
  },
  "oklch": {
    "l": 0.19829,
    "c": 0.10163,
    "h": 289.5
  },
  "luminance": 0.0064
}

Semantic roles & 50–950 ramp

primary
#18043F
secondary
#5F801E
accent
#FE2AB6
background
#F5F4F7
surface
#E9E6ED
border
#C5C2C8
text
#040008
muted
#79777B

Preview Lab

Preview with #18043F

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

Preview Lab → · Contrast checker → · Palette generator →

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