#120A2E#120A2E

#120A2E is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 18.3% C 0.069 H 287.8°. Best body text is #FFFFFF at 18.94:1 contrast (WCAG AA passes).

Color values

HEX#120A2E
RGBrgb(18, 10, 46)
HSLhsl(253, 64%, 11%)
HSVhsv(253, 78%, 18%)
CMYKcmyk(60.9%, 78.3%, 0%, 82%)
CIE-LABlab(4.90, 13.72, -21.88)
CIE-LCHlch(4.90, 25.82, 302.10°)
OKLaboklab(18.26% 0.021 -0.0652)
OKLCHoklch(18.26% 0.069 287.8)
XYZxyz(0.8510, 0.5429, 2.6442)
Luminance0.0054 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120A2E #262E0A
analogous
#0A142E #120A2E #240A2E
triadic
#120A2E #2E120A #0A2E12
tetradic
#120A2E #2E0A14 #262E0A #0A2E24
square
#120A2E #2E0A14 #262E0A #0A2E24
split-complementary
#120A2E #2E240A #142E0A
monochromatic
#0A0519 #0A0519 #120A2E #261560 #392093

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##120A2E#FFFFFF#000000##FFFFFF
##120A2E1.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)
#00112F
Deuteranopia (green-blind)
#00102D
Tritanopia (blue-blind)
#08131A
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #120a2e;
/* rgb */ color: rgb(18, 10, 46);
/* oklch */ color: oklch(18.3% 0.069 287.8);
Tailwind
colors: {
  custom: {
    50: '#524b67',
    500: '#120a2e',
    950: '#000000',
  },
}
SCSS
$custom: #120a2e;
$custom-light: #524b67;
$custom-dark: #000000;
JSON
{
  "hex": "#120a2e",
  "rgb": {
    "r": 18,
    "g": 10,
    "b": 46
  },
  "hsl": {
    "h": 253.333,
    "s": 64.286,
    "l": 10.98
  },
  "oklch": {
    "l": 0.18257,
    "c": 0.06854,
    "h": 287.8
  },
  "luminance": 0.00543
}

Semantic roles & 50–950 ramp

primary
#120A2E
secondary
#5C6B29
accent
#E741C2
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020106
muted
#78777A

Preview Lab

Preview with #120A2E

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

Preview Lab → · Contrast checker → · Palette generator →

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