#120B2E#120B2E

#120B2E is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 18.5% C 0.067 H 287.1°. Best body text is #FFFFFF at 18.87:1 contrast (WCAG AA passes).

Color values

HEX#120B2E
RGBrgb(18, 11, 46)
HSLhsl(252, 61%, 11%)
HSVhsv(252, 76%, 18%)
CMYKcmyk(60.9%, 76.1%, 0%, 82%)
CIE-LABlab(5.11, 13.30, -21.56)
CIE-LCHlch(5.11, 25.33, 301.68°)
OKLaboklab(18.46% 0.0197 -0.0639)
OKLCHoklch(18.46% 0.067 287.1)
XYZxyz(0.8621, 0.5652, 2.6479)
Luminance0.0056 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120B2E #272E0B
analogous
#0B152E #120B2E #230B2E
triadic
#120B2E #2E120B #0B2E12
tetradic
#120B2E #2E0B15 #272E0B #0B2E23
square
#120B2E #2E0B15 #272E0B #0B2E23
split-complementary
#120B2E #2E230B #152E0B
monochromatic
#0A0619 #0A0619 #120B2E #25175F #392391

Accessibility & contrast

On white

18.87
#120B2E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #120B2E
18.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120B2E#FFFFFF#000000##FFFFFF
##120B2E1.0018.871.1118.87
#FFFFFF18.871.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00122F
Deuteranopia (green-blind)
#00102D
Tritanopia (blue-blind)
#08131B
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #120b2e;
/* rgb */ color: rgb(18, 11, 46);
/* oklch */ color: oklch(18.5% 0.067 287.1);
Tailwind
colors: {
  custom: {
    50: '#524b67',
    500: '#120b2e',
    950: '#000000',
  },
}
SCSS
$custom: #120b2e;
$custom-light: #524b67;
$custom-dark: #000000;
JSON
{
  "hex": "#120b2e",
  "rgb": {
    "r": 18,
    "g": 11,
    "b": 46
  },
  "hsl": {
    "h": 252,
    "s": 61.404,
    "l": 11.176
  },
  "oklch": {
    "l": 0.18456,
    "c": 0.0669,
    "h": 287.1
  },
  "luminance": 0.00565
}

Semantic roles & 50–950 ramp

primary
#120B2E
secondary
#5E6A2A
accent
#E543C4
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020106
muted
#78777A

Preview Lab

Preview with #120B2E

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

Preview Lab → · Contrast checker → · Palette generator →

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