#120B2F#120B2F

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

Color values

HEX#120B2F
RGBrgb(18, 11, 47)
HSLhsl(252, 62%, 11%)
HSVhsv(252, 77%, 18%)
CMYKcmyk(61.7%, 76.6%, 0%, 81.6%)
CIE-LABlab(5.18, 13.80, -22.19)
CIE-LCHlch(5.18, 26.13, 301.87°)
OKLaboklab(18.56% 0.0196 -0.0657)
OKLCHoklch(18.56% 0.069 286.6)
XYZxyz(0.8821, 0.5731, 2.7529)
Luminance0.0057 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120B2F #282F0B
analogous
#0B162F #120B2F #240B2F
triadic
#120B2F #2F120B #0B2F12
tetradic
#120B2F #2F0B16 #282F0B #0B2F24
square
#120B2F #2F0B16 #282F0B #0B2F24
split-complementary
#120B2F #2F240B #162F0B
monochromatic
#090619 #090619 #120B2F #251761 #382292

Accessibility & contrast

On white

18.84
#120B2F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #120B2F
18.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120B2F#FFFFFF#000000##FFFFFF
##120B2F1.0018.841.1118.84
#FFFFFF18.841.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001230
Deuteranopia (green-blind)
#00102E
Tritanopia (blue-blind)
#07141B
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #120b2f;
/* rgb */ color: rgb(18, 11, 47);
/* oklch */ color: oklch(18.6% 0.069 286.6);
Tailwind
colors: {
  custom: {
    50: '#524b68',
    500: '#120b2f',
    950: '#000000',
  },
}
SCSS
$custom: #120b2f;
$custom-light: #524b68;
$custom-dark: #000000;
JSON
{
  "hex": "#120b2f",
  "rgb": {
    "r": 18,
    "g": 11,
    "b": 47
  },
  "hsl": {
    "h": 251.667,
    "s": 62.069,
    "l": 11.373
  },
  "oklch": {
    "l": 0.18557,
    "c": 0.06853,
    "h": 286.6
  },
  "luminance": 0.00573
}

Semantic roles & 50–950 ramp

primary
#120B2F
secondary
#5F6B2A
accent
#E543C6
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020106
muted
#78777A

Preview Lab

Preview with #120B2F

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

Preview Lab → · Contrast checker → · Palette generator →

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