#120223#120223

#120223 is a very dark, moderate violet. Relative luminance 0.003; OKLCH L 15.2% C 0.070 H 302.9°. Best body text is #FFFFFF at 19.84:1 contrast (WCAG AA passes).

Color values

HEX#120223
RGBrgb(18, 2, 35)
HSLhsl(269, 89%, 7%)
HSVhsv(269, 94%, 14%)
CMYKcmyk(48.6%, 94.3%, 0%, 86.3%)
CIE-LABlab(2.65, 12.11, -17.00)
CIE-LCHlch(2.65, 20.87, 305.47°)
OKLaboklab(15.21% 0.0378 -0.0586)
OKLCHoklch(15.21% 0.07 302.9)
XYZxyz(0.5745, 0.2934, 1.6161)
Luminance0.0029 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120223 #132302
analogous
#020323 #120223 #230223
triadic
#120223 #231202 #022312
tetradic
#120223 #230203 #132302 #022323
square
#120223 #230203 #132302 #022323
split-complementary
#120223 #232302 #032302
monochromatic
#0F021D #0F021D #120223 #30055D #4E0997

Accessibility & contrast

On white

19.84
#120223 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.06
#120223 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #120223
19.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120223#FFFFFF#000000##FFFFFF
##1202231.0019.841.0619.84
#FFFFFF19.841.0021.001.00
#0000001.0621.001.0021.00
##FFFFFF19.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000924
Deuteranopia (green-blind)
#000A22
Tritanopia (blue-blind)
#0E0811
Achromatopsia (no color)
#0A0A0A

Design tokens & code

CSS
--color: #120223;
/* rgb */ color: rgb(18, 2, 35);
/* oklch */ color: oklch(15.2% 0.070 302.9);
Tailwind
colors: {
  custom: {
    50: '#4f475e',
    500: '#120223',
    950: '#000000',
  },
}
SCSS
$custom: #120223;
$custom-light: #4f475e;
$custom-dark: #000000;
JSON
{
  "hex": "#120223",
  "rgb": {
    "r": 18,
    "g": 2,
    "b": 35
  },
  "hsl": {
    "h": 269.091,
    "s": 89.189,
    "l": 7.255
  },
  "oklch": {
    "l": 0.15208,
    "c": 0.06974,
    "h": 302.9
  },
  "luminance": 0.00293
}

Semantic roles & 50–950 ramp

primary
#120223
secondary
#426918
accent
#FF2997
background
#F4F4F5
surface
#E7E6E9
border
#C3C2C5
text
#020004
muted
#787779

Preview Lab

Preview with #120223

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

Preview Lab → · Contrast checker → · Palette generator →

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