#120A2F#120A2F

#120A2F is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 18.4% C 0.070 H 287.3°. Best body text is #FFFFFF at 18.92:1 contrast (WCAG AA passes).

Color values

HEX#120A2F
RGBrgb(18, 10, 47)
HSLhsl(253, 65%, 11%)
HSVhsv(253, 79%, 18%)
CMYKcmyk(61.7%, 78.7%, 0%, 81.6%)
CIE-LABlab(4.98, 14.21, -22.51)
CIE-LCHlch(4.98, 26.62, 302.27°)
OKLaboklab(18.36% 0.0209 -0.067)
OKLCHoklch(18.36% 0.07 287.3)
XYZxyz(0.8709, 0.5509, 2.7492)
Luminance0.0055 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120A2F #272F0A
analogous
#0A142F #120A2F #240A2F
triadic
#120A2F #2F120A #0A2F12
tetradic
#120A2F #2F0A14 #272F0A #0A2F24
square
#120A2F #2F0A14 #272F0A #0A2F24
split-complementary
#120A2F #2F240A #142F0A
monochromatic
#0A0519 #0A0519 #120A2F #251561 #391F94

Accessibility & contrast

On white

18.92
#120A2F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #120A2F
18.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120A2F#FFFFFF#000000##FFFFFF
##120A2F1.0018.921.1118.92
#FFFFFF18.921.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.921.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #120a2f;
/* rgb */ color: rgb(18, 10, 47);
/* oklch */ color: oklch(18.4% 0.070 287.3);
Tailwind
colors: {
  custom: {
    50: '#524b68',
    500: '#120a2f',
    950: '#000000',
  },
}
SCSS
$custom: #120a2f;
$custom-light: #524b68;
$custom-dark: #000000;
JSON
{
  "hex": "#120a2f",
  "rgb": {
    "r": 18,
    "g": 10,
    "b": 47
  },
  "hsl": {
    "h": 252.973,
    "s": 64.912,
    "l": 11.176
  },
  "oklch": {
    "l": 0.1836,
    "c": 0.07014,
    "h": 287.3
  },
  "luminance": 0.00551
}

Semantic roles & 50–950 ramp

primary
#120A2F
secondary
#5E6C29
accent
#E840C4
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020106
muted
#78777A

Preview Lab

Preview with #120A2F

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

Preview Lab → · Contrast checker → · Palette generator →

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