#18012C#18012C

#18012C is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 17.0% C 0.085 H 304.2°. Best body text is #FFFFFF at 19.45:1 contrast (WCAG AA passes).

Color values

HEX#18012C
RGBrgb(24, 1, 44)
HSLhsl(272, 96%, 9%)
HSVhsv(272, 98%, 17%)
CMYKcmyk(45.5%, 97.7%, 0%, 82.7%)
CIE-LABlab(3.59, 19.01, -22.41)
CIE-LCHlch(3.59, 29.39, 310.31°)
OKLaboklab(16.98% 0.0475 -0.07)
OKLCHoklch(16.98% 0.085 304.2)
XYZxyz(0.8421, 0.3977, 2.4148)
Luminance0.0040 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18012C #152C01
analogous
#03012C #18012C #2C012B
triadic
#18012C #2C1801 #012C18
tetradic
#18012C #2C0301 #152C01 #012B2C
square
#18012C #2C0301 #152C01 #012B2C
split-complementary
#18012C #2B2C01 #012C03
monochromatic
#10011E #10011E #18012C #390268 #5904A4

Accessibility & contrast

On white

19.45
#18012C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18012C
19.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18012C#FFFFFF#000000##FFFFFF
##18012C1.0019.451.0819.45
#FFFFFF19.451.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.451.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #18012c;
/* rgb */ color: rgb(24, 1, 44);
/* oklch */ color: oklch(17.0% 0.085 304.2);
Tailwind
colors: {
  custom: {
    50: '#564665',
    500: '#18012c',
    950: '#000000',
  },
}
SCSS
$custom: #18012c;
$custom-light: #564665;
$custom-dark: #000000;
JSON
{
  "hex": "#18012c",
  "rgb": {
    "r": 24,
    "g": 1,
    "b": 44
  },
  "hsl": {
    "h": 272.093,
    "s": 95.556,
    "l": 8.824
  },
  "oklch": {
    "l": 0.16978,
    "c": 0.08458,
    "h": 304.2
  },
  "luminance": 0.00398
}

Semantic roles & 50–950 ramp

primary
#18012C
secondary
#417217
accent
#FF298C
background
#F5F3F6
surface
#E9E5EB
border
#C5C1C6
text
#030005
muted
#78777A

Preview Lab

Preview with #18012C

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

Preview Lab → · Contrast checker → · Palette generator →

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