#120C2D#120C2D

#120C2D is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 18.6% C 0.064 H 286.8°. Best body text is #FFFFFF at 18.81:1 contrast (WCAG AA passes).

Color values

HEX#120C2D
RGBrgb(18, 12, 45)
HSLhsl(251, 58%, 11%)
HSVhsv(251, 73%, 18%)
CMYKcmyk(60%, 73.3%, 0%, 82.4%)
CIE-LABlab(5.25, 12.38, -20.58)
CIE-LCHlch(5.25, 24.02, 301.02°)
OKLaboklab(18.57% 0.0184 -0.0608)
OKLCHoklch(18.57% 0.064 286.8)
XYZxyz(0.8544, 0.5810, 2.5492)
Luminance0.0058 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120C2D #272D0C
analogous
#0C162D #120C2D #220C2D
triadic
#120C2D #2D120C #0C2D12
tetradic
#120C2D #2D0C16 #272D0C #0C2D22
square
#120C2D #2D0C16 #272D0C #0C2D22
split-complementary
#120C2D #2D220C #162D0C
monochromatic
#0A0618 #0A0618 #120C2D #25195D #39268E

Accessibility & contrast

On white

18.81
#120C2D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#120C2D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #120C2D
18.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120C2D#FFFFFF#000000##FFFFFF
##120C2D1.0018.811.1218.81
#FFFFFF18.811.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00122E
Deuteranopia (green-blind)
#00112C
Tritanopia (blue-blind)
#09141A
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #120c2d;
/* rgb */ color: rgb(18, 12, 45);
/* oklch */ color: oklch(18.6% 0.064 286.8);
Tailwind
colors: {
  custom: {
    50: '#524c66',
    500: '#120c2d',
    950: '#000000',
  },
}
SCSS
$custom: #120c2d;
$custom-light: #524c66;
$custom-dark: #000000;
JSON
{
  "hex": "#120c2d",
  "rgb": {
    "r": 18,
    "g": 12,
    "b": 45
  },
  "hsl": {
    "h": 250.909,
    "s": 57.895,
    "l": 11.176
  },
  "oklch": {
    "l": 0.18566,
    "c": 0.06354,
    "h": 286.8
  },
  "luminance": 0.00581
}

Semantic roles & 50–950 ramp

primary
#120C2D
secondary
#5E692C
accent
#E147C5
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020106
muted
#78777A

Preview Lab

Preview with #120C2D

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

Preview Lab → · Contrast checker → · Palette generator →

#120C2D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva