#120837#120837

#120837 is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 18.9% C 0.085 H 284.5°. Best body text is #FFFFFF at 18.82:1 contrast (WCAG AA passes).

Color values

HEX#120837
RGBrgb(18, 8, 55)
HSLhsl(253, 75%, 12%)
HSVhsv(253, 85%, 22%)
CMYKcmyk(67.3%, 85.5%, 0%, 78.4%)
CIE-LABlab(5.22, 19.02, -28.02)
CIE-LCHlch(5.22, 33.87, 304.17°)
OKLaboklab(18.86% 0.0214 -0.0827)
OKLCHoklch(18.86% 0.085 284.5)
XYZxyz(1.0257, 0.5780, 3.6712)
Luminance0.0058 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120837 #2D3708
analogous
#081637 #120837 #2A0837
triadic
#120837 #371208 #083712
tetradic
#120837 #370816 #2D3708 #08372A
square
#120837 #370816 #2D3708 #08372A
split-complementary
#120837 #372A08 #163708
monochromatic
#09041B #09041B #120837 #23106C #3518A2

Accessibility & contrast

On white

18.82
#120837 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#120837 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #120837
18.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120837#FFFFFF#000000##FFFFFF
##1208371.0018.821.1218.82
#FFFFFF18.821.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001338
Deuteranopia (green-blind)
#001036
Tritanopia (blue-blind)
#02151E
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #120837;
/* rgb */ color: rgb(18, 8, 55);
/* oklch */ color: oklch(18.9% 0.085 284.5);
Tailwind
colors: {
  custom: {
    50: '#55496e',
    500: '#120837',
    950: '#000000',
  },
}
SCSS
$custom: #120837;
$custom-light: #55496e;
$custom-dark: #000000;
JSON
{
  "hex": "#120837",
  "rgb": {
    "r": 18,
    "g": 8,
    "b": 55
  },
  "hsl": {
    "h": 252.766,
    "s": 74.603,
    "l": 12.353
  },
  "oklch": {
    "l": 0.18862,
    "c": 0.08544,
    "h": 284.5
  },
  "luminance": 0.00578
}

Semantic roles & 50–950 ramp

primary
#120837
secondary
#657625
accent
#F137CA
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#030107
muted
#78777A

Preview Lab

Preview with #120837

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

Preview Lab → · Contrast checker → · Palette generator →

#120837 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva