#18012B#18012B

#18012B is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 16.9% C 0.083 H 305.1°. Best body text is #FFFFFF at 19.48:1 contrast (WCAG AA passes).

Color values

HEX#18012B
RGBrgb(24, 1, 43)
HSLhsl(273, 95%, 9%)
HSVhsv(273, 98%, 17%)
CMYKcmyk(44.2%, 97.7%, 0%, 83.1%)
CIE-LABlab(3.53, 18.54, -21.76)
CIE-LCHlch(3.53, 28.58, 310.43°)
OKLaboklab(16.86% 0.048 -0.0683)
OKLCHoklch(16.86% 0.083 305.1)
XYZxyz(0.8235, 0.3903, 2.3170)
Luminance0.0039 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18012B #142B01
analogous
#03012B #18012B #2B0129
triadic
#18012B #2B1801 #012B18
tetradic
#18012B #2B0301 #142B01 #01292B
square
#18012B #2B0301 #142B01 #01292B
split-complementary
#18012B #292B01 #012B03
monochromatic
#11011E #11011E #18012B #390267 #5B04A3

Accessibility & contrast

On white

19.48
#18012B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.08
#18012B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18012B
19.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18012B#FFFFFF#000000##FFFFFF
##18012B1.0019.481.0819.48
#FFFFFF19.481.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000C2C
Deuteranopia (green-blind)
#000D2A
Tritanopia (blue-blind)
#140A15
Achromatopsia (no color)
#0D0D0D

Design tokens & code

CSS
--color: #18012b;
/* rgb */ color: rgb(24, 1, 43);
/* oklch */ color: oklch(16.9% 0.083 305.1);
Tailwind
colors: {
  custom: {
    50: '#554664',
    500: '#18012b',
    950: '#000000',
  },
}
SCSS
$custom: #18012b;
$custom-light: #554664;
$custom-dark: #000000;
JSON
{
  "hex": "#18012b",
  "rgb": {
    "r": 24,
    "g": 1,
    "b": 43
  },
  "hsl": {
    "h": 272.857,
    "s": 95.455,
    "l": 8.627
  },
  "oklch": {
    "l": 0.16864,
    "c": 0.08347,
    "h": 305.1
  },
  "luminance": 0.0039
}

Semantic roles & 50–950 ramp

primary
#18012B
secondary
#407117
accent
#FF298A
background
#F5F3F6
surface
#E9E5EB
border
#C5C1C6
text
#030005
muted
#78777A

Preview Lab

Preview with #18012B

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

Preview Lab → · Contrast checker → · Palette generator →

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