#120a21
a deep, vivid violet · cool · closest name: Black
At a glance
Every number on this page in one read: what #120a21 is made of, how bright it looks, and which way it leans.
Reads cool. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.
Every format
| HEX | #120a21 |
| RGB | rgb(18, 10, 33) |
| HSL | hsl(261, 54%, 8%) |
| CMYK | cmyk(46%, 70%, 0%, 87%) |
| LAB | lab(4.1 8.2 -13.2) |
| LCH | lch(4.1 15.5 301.8) |
| OKLCH | oklch(0.170 0.047 297.2) |
| Decimal | 1182241 |
| Display P3 | color(display-p3 0.071 0.039 0.129) |
Copy-ready code
/* CSS */
color: #120a21;
background-color: #120a21;
/* Tailwind (arbitrary) */
class="text-[#120a21] bg-[#120a21]"
/* SCSS */
$brand: #120a21;
/* SwiftUI */
Color(red: 0.071, green: 0.039, blue: 0.129)
/* Android */
Color.parseColor("#120a21")
/* Flutter */
Color(0xFF120A21)
/* Python / OpenCV (BGR) */
(33, 10, 18)Best text color
Only one of black and white can be right. This is the one, with the number that proves it.
Accessibility — WCAG contrast
Color scale — 50 to 950
A Tailwind-shaped ramp built around this exact hex. #120a21 is pinned to step 950; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.
:root {
--brand-50: #F6F4FB;
--brand-100: #EEE9F6;
--brand-200: #D9CEED;
--brand-300: #BEA9E5;
--brand-400: #9D7ED8;
--brand-500: #7D53CB;
--brand-600: #6739BC;
--brand-700: #552F9D;
--brand-800: #44267D;
--brand-900: #341F5B;
--brand-950: #120a21;
--brand: #120a21;
--brand-ink: #ffffff;
}Colors that work with #120a21
Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.
Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.
Lightness flips, hue holds. The accent stays the anchor in both themes.
How to use #120a21
Derived from its contrast, chroma and lightness — not from taste.
- ✓Body text and links on white
- ✓Primary buttons and calls to action
- ✓Focus rings, active and selected states
- ✓Headers, footers and dark-mode surfaces
- ✓Brand accents, badges and data highlights
- ⚠Text on black or near-black surfaces
- ⚠Full-page backgrounds — tiring over long sessions
- ⚠Black text placed on it
- ⚠Pairing with a same-lightness hue — edges vibrate
Similar colors
One move away from this hex in each direction. Every swatch is its own page.
Color relationships
The wheel positions with their names attached, so you can grab the one you actually need.
| Complementary | #19210A | Directly opposite — maximum tension | |
| Analogous left | #0A0D21 | Neighbour, quieter | |
| Analogous right | #1D0A21 | Neighbour, quieter | |
| Split-complement 1 | #211D0A | Contrast without the clash | |
| Split-complement 2 | #0D210A | Contrast without the clash | |
| Triadic 1 | #21120A | Even thirds — balanced and loud | |
| Triadic 2 | #0A2112 | Even thirds — balanced and loud | |
| Tetradic | #210A0D | Fourth corner of the square scheme |
RGB percentages
CMYK percentages
Color previews
#120a21 text on a black background
contrast 1.09:1
#120a21 text on a white background
contrast 19.25:1
CSS3 live lab
The quick brown fox
color: #120a21;
background-color: #120a21;
Glowing headline
text-shadow: 2px 2px 8px #120a21;
Soft neon halo
text-shadow: 0 0 14px rgba(18, 10, 33, 0.45);
box-shadow: 0 12px 32px -8px rgba(18, 10, 33, 0.45);
border: 3px solid #120a21; background: linear-gradient(135deg, #120a21, #210A21);
Monochromatic scale
Palettes built from #120a21
Shades — darker
Tints — lighter
Color harmonies
Nearest named colors
Ranked with CIEDE2000 across all 139 CSS keywords. Under ΔE 2 the eye stops telling them apart; over ΔE 10 they are plainly different colors.
Closest color with a full write-up: Jet Black (#0a0a0a) — ΔE2000 12.8 away, with its history, psychology and brand usage.
#120a21 in the real world
Where a color in this family tends to land, and the interface roles it is usually asked to play.
Converts to four-color process without much drama. Proof it anyway.
#120a21, answered
What color is #120a21?
#120a21 is a deep vivid violet, closest to Black (ΔE2000 13). It sits at 261° on the hue wheel with 54% saturation and 8% lightness, which reads as cool.
What is the RGB value of #120a21?
rgb(18, 10, 33) — 18 red, 10 green and 33 blue out of 255, or 7.1% / 3.9% / 12.9% by channel.
Is #120a21 a light or a dark color?
It is a dark color. Relative luminance is 0.0046 and perceived brightness is 7%, so white text on it reaches 19.25:1.
Should I use black or white text on #120a21?
White. It scores 19.25:1 against #120a21, versus 1.09:1 for black — AAA at any size.
What is the complementary color of #120a21?
#19210A sits directly opposite on the wheel. Softer options are the split-complements #211D0A and #0D210A, which give the same contrast with far less vibration.
What colors go well with #120a21?
For interface work: #F6F4FA as the surface, #D0C0EC for borders, #674B9B for secondary text, #1F2209 as an accent and #351E62 for hover and pressed states. For a palette, the analogous pair #0A0D21 and #1D0A21 stays calm, while #19210A is the loudest partner.
What is #120a21 in CMYK for printing?
cmyk(46%, 70%, 0%, 87%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.
Is #120a21 warm or cool?
Cool — it scores 72 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #1A0A21; nudged cooler, #0A0A21.