#18012D#18012D

#18012D is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 17.1% C 0.086 H 303.3°. Best body text is #FFFFFF at 19.43:1 contrast (WCAG AA passes).

Color values

HEX#18012D
RGBrgb(24, 1, 45)
HSLhsl(271, 96%, 9%)
HSVhsv(271, 98%, 18%)
CMYKcmyk(46.7%, 97.8%, 0%, 82.4%)
CIE-LABlab(3.66, 19.48, -23.06)
CIE-LCHlch(3.66, 30.19, 310.20°)
OKLaboklab(17.09% 0.047 -0.0716)
OKLCHoklch(17.09% 0.086 303.3)
XYZxyz(0.8611, 0.4054, 2.5150)
Luminance0.0040 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18012D #162D01
analogous
#02012D #18012D #2D012C
triadic
#18012D #2D1801 #012D18
tetradic
#18012D #2D0201 #162D01 #012C2D
square
#18012D #2D0201 #162D01 #012C2D
split-complementary
#18012D #2C2D01 #012D02
monochromatic
#10011E #10011E #18012D #380269 #5804A5

Accessibility & contrast

On white

19.43
#18012D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18012D
19.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18012D#FFFFFF#000000##FFFFFF
##18012D1.0019.431.0819.43
#FFFFFF19.431.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000D2E
Deuteranopia (green-blind)
#000D2C
Tritanopia (blue-blind)
#140B16
Achromatopsia (no color)
#0D0D0D

Design tokens & code

CSS
--color: #18012d;
/* rgb */ color: rgb(24, 1, 45);
/* oklch */ color: oklch(17.1% 0.086 303.3);
Tailwind
colors: {
  custom: {
    50: '#564666',
    500: '#18012d',
    950: '#000000',
  },
}
SCSS
$custom: #18012d;
$custom-light: #564666;
$custom-dark: #000000;
JSON
{
  "hex": "#18012d",
  "rgb": {
    "r": 24,
    "g": 1,
    "b": 45
  },
  "hsl": {
    "h": 271.364,
    "s": 95.652,
    "l": 9.02
  },
  "oklch": {
    "l": 0.17093,
    "c": 0.08569,
    "h": 303.3
  },
  "luminance": 0.00405
}

Semantic roles & 50–950 ramp

primary
#18012D
secondary
#437317
accent
#FF298F
background
#F5F3F6
surface
#E9E5EB
border
#C5C1C6
text
#030006
muted
#78777A

Preview Lab

Preview with #18012D

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

Preview Lab → · Contrast checker → · Palette generator →

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