#18043B#18043B

#18043B is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 19.3% C 0.097 H 291.7°. Best body text is #FFFFFF at 18.76:1 contrast (WCAG AA passes).

Color values

HEX#18043B
RGBrgb(24, 4, 59)
HSLhsl(262, 87%, 12%)
HSVhsv(262, 93%, 23%)
CMYKcmyk(59.3%, 93.2%, 0%, 76.9%)
CIE-LABlab(5.39, 24.53, -30.63)
CIE-LCHlch(5.39, 39.24, 308.68°)
OKLaboklab(19.34% 0.0357 -0.0898)
OKLCHoklch(19.34% 0.097 291.7)
XYZxyz(1.2093, 0.5967, 4.1883)
Luminance0.0060 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18043B #273B04
analogous
#040C3B #18043B #34043B
triadic
#18043B #3B1804 #043B18
tetradic
#18043B #3B040C #273B04 #043B34
square
#18043B #3B040C #273B04 #043B34
split-complementary
#18043B #3B3404 #0C3B04
monochromatic
#0C021D #0C021D #18043B #2F0874 #470CAE

Accessibility & contrast

On white

18.76
#18043B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18043B
18.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18043B#FFFFFF#000000##FFFFFF
##18043B1.0018.761.1218.76
#FFFFFF18.761.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00133C
Deuteranopia (green-blind)
#00113A
Tritanopia (blue-blind)
#0C1420
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #18043b;
/* rgb */ color: rgb(24, 4, 59);
/* oklch */ color: oklch(19.3% 0.097 291.7);
Tailwind
colors: {
  custom: {
    50: '#5a4772',
    500: '#18043b',
    950: '#000000',
  },
}
SCSS
$custom: #18043b;
$custom-light: #5a4772;
$custom-dark: #000000;
JSON
{
  "hex": "#18043b",
  "rgb": {
    "r": 24,
    "g": 4,
    "b": 59
  },
  "hsl": {
    "h": 261.818,
    "s": 87.302,
    "l": 12.353
  },
  "oklch": {
    "l": 0.19342,
    "c": 0.09662,
    "h": 291.7
  },
  "luminance": 0.00597
}

Semantic roles & 50–950 ramp

primary
#18043B
secondary
#5A7D1E
accent
#FD2AB1
background
#F5F4F6
surface
#E9E6EC
border
#C5C2C7
text
#040008
muted
#79777B

Preview Lab

Preview with #18043B

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

Preview Lab → · Contrast checker → · Palette generator →

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