#120023#120023

#120023 is a very dark, moderate violet. Relative luminance 0.003; OKLCH L 14.6% C 0.076 H 304.6°. Best body text is #FFFFFF at 20.00:1 contrast (WCAG AA passes).

Color values

HEX#120023
RGBrgb(18, 0, 35)
HSLhsl(271, 100%, 7%)
HSVhsv(271, 100%, 14%)
CMYKcmyk(48.6%, 100%, 0%, 86.3%)
CIE-LABlab(2.26, 12.91, -17.60)
CIE-LCHlch(2.26, 21.83, 306.27°)
OKLaboklab(14.62% 0.0432 -0.0627)
OKLCHoklch(14.62% 0.076 304.6)
XYZxyz(0.5528, 0.2499, 1.6089)
Luminance0.0025 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120023 #112300
analogous
#000023 #120023 #230023
triadic
#120023 #231200 #002312
tetradic
#120023 #230000 #112300 #002323
square
#120023 #230000 #112300 #002323
split-complementary
#120023 #232300 #002300
monochromatic
#10001F #10001F #120023 #310060 #51009D

Accessibility & contrast

On white

20.00
#120023 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.05
#120023 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #120023
20.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120023#FFFFFF#000000##FFFFFF
##1200231.0020.001.0520.00
#FFFFFF20.001.0021.001.00
#0000001.0521.001.0021.00
##FFFFFF20.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000824
Deuteranopia (green-blind)
#000822
Tritanopia (blue-blind)
#0F0710
Achromatopsia (no color)
#080808

Design tokens & code

CSS
--color: #120023;
/* rgb */ color: rgb(18, 0, 35);
/* oklch */ color: oklch(14.6% 0.076 304.6);
Tailwind
colors: {
  custom: {
    50: '#4f465e',
    500: '#120023',
    950: '#000000',
  },
}
SCSS
$custom: #120023;
$custom-light: #4f465e;
$custom-dark: #000000;
JSON
{
  "hex": "#120023",
  "rgb": {
    "r": 18,
    "g": 0,
    "b": 35
  },
  "hsl": {
    "h": 270.857,
    "s": 100,
    "l": 6.863
  },
  "oklch": {
    "l": 0.14616,
    "c": 0.0761,
    "h": 304.6
  },
  "luminance": 0.0025
}

Semantic roles & 50–950 ramp

primary
#120023
secondary
#3E6C13
accent
#FF2991
background
#F4F3F5
surface
#E7E5E9
border
#C3C1C5
text
#020004
muted
#787779

Preview Lab

Preview with #120023

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

Preview Lab → · Contrast checker → · Palette generator →

#120023 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva