#120A32#120A32

#120A32 is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 18.7% C 0.075 H 285.8°. Best body text is #FFFFFF at 18.83:1 contrast (WCAG AA passes).

Color values

HEX#120A32
RGBrgb(18, 10, 50)
HSLhsl(252, 67%, 12%)
HSVhsv(252, 80%, 20%)
CMYKcmyk(64%, 80%, 0%, 80.4%)
CIE-LABlab(5.20, 15.69, -24.38)
CIE-LCHlch(5.20, 28.99, 302.76°)
OKLaboklab(18.68% 0.0204 -0.0721)
OKLCHoklch(18.68% 0.075 285.8)
XYZxyz(0.9335, 0.5759, 3.0790)
Luminance0.0058 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120A32 #2A320A
analogous
#0A1632 #120A32 #260A32
triadic
#120A32 #32120A #0A3212
tetradic
#120A32 #320A16 #2A320A #0A3226
square
#120A32 #320A16 #2A320A #0A3226
split-complementary
#120A32 #32260A #16320A
monochromatic
#09051A #09051A #120A32 #241465 #371E98

Accessibility & contrast

On white

18.83
#120A32 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #120A32
18.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120A32#FFFFFF#000000##FFFFFF
##120A321.0018.831.1218.83
#FFFFFF18.831.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001233
Deuteranopia (green-blind)
#001031
Tritanopia (blue-blind)
#05141C
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #120a32;
/* rgb */ color: rgb(18, 10, 50);
/* oklch */ color: oklch(18.7% 0.075 285.8);
Tailwind
colors: {
  custom: {
    50: '#534a6a',
    500: '#120a32',
    950: '#000000',
  },
}
SCSS
$custom: #120a32;
$custom-light: #534a6a;
$custom-dark: #000000;
JSON
{
  "hex": "#120a32",
  "rgb": {
    "r": 18,
    "g": 10,
    "b": 50
  },
  "hsl": {
    "h": 252,
    "s": 66.667,
    "l": 11.765
  },
  "oklch": {
    "l": 0.18676,
    "c": 0.07488,
    "h": 285.8
  },
  "luminance": 0.00576
}

Semantic roles & 50–950 ramp

primary
#120A32
secondary
#616F28
accent
#EA3EC7
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#030106
muted
#78777A

Preview Lab

Preview with #120A32

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

Preview Lab → · Contrast checker → · Palette generator →

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