#120C28#120C28

#120C28 is a very dark, muted violet. Relative luminance 0.005; OKLCH L 18.1% C 0.055 H 289.6°. Best body text is #FFFFFF at 18.94:1 contrast (WCAG AA passes).

Color values

HEX#120C28
RGBrgb(18, 12, 40)
HSLhsl(253, 54%, 10%)
HSVhsv(253, 70%, 16%)
CMYKcmyk(55%, 70%, 0%, 84.3%)
CIE-LABlab(4.92, 10.08, -17.33)
CIE-LCHlch(4.92, 20.05, 300.19°)
OKLaboklab(18.1% 0.0185 -0.0518)
OKLCHoklch(18.1% 0.055 289.6)
XYZxyz(0.7638, 0.5447, 2.0720)
Luminance0.0054 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120C28 #22280C
analogous
#0C1428 #120C28 #200C28
triadic
#120C28 #28120C #0C2812
tetradic
#120C28 #280C14 #22280C #0C2820
square
#120C28 #280C14 #22280C #0C2820
split-complementary
#120C28 #28200C #14280C
monochromatic
#0B0718 #0B0718 #120C28 #271A57 #3C2886

Accessibility & contrast

On white

18.94
#120C28 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#120C28 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #120C28
18.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120C28#FFFFFF#000000##FFFFFF
##120C281.0018.941.1118.94
#FFFFFF18.941.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#011129
Deuteranopia (green-blind)
#021027
Tritanopia (blue-blind)
#0C1218
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #120c28;
/* rgb */ color: rgb(18, 12, 40);
/* oklch */ color: oklch(18.1% 0.055 289.6);
Tailwind
colors: {
  custom: {
    50: '#514c62',
    500: '#120c28',
    950: '#000000',
  },
}
SCSS
$custom: #120c28;
$custom-light: #514c62;
$custom-dark: #000000;
JSON
{
  "hex": "#120c28",
  "rgb": {
    "r": 18,
    "g": 12,
    "b": 40
  },
  "hsl": {
    "h": 252.857,
    "s": 53.846,
    "l": 10.196
  },
  "oklch": {
    "l": 0.18099,
    "c": 0.05502,
    "h": 289.6
  },
  "luminance": 0.00545
}

Semantic roles & 50–950 ramp

primary
#120C28
secondary
#57632D
accent
#DD4BBE
background
#F4F4F5
surface
#E7E7EA
border
#C3C3C6
text
#020105
muted
#787779

Preview Lab

Preview with #120C28

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

Preview Lab → · Contrast checker → · Palette generator →

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