#120840#120840

#120840 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 19.9% C 0.098 H 281.0°. Best body text is #FFFFFF at 18.51:1 contrast (WCAG AA passes).

Color values

HEX#120840
RGBrgb(18, 8, 64)
HSLhsl(251, 78%, 14%)
HSVhsv(251, 88%, 25%)
CMYKcmyk(71.9%, 87.5%, 0%, 74.9%)
CIE-LABlab(6.07, 23.24, -33.14)
CIE-LCHlch(6.07, 40.48, 305.03°)
OKLaboklab(19.94% 0.0187 -0.0965)
OKLCHoklch(19.94% 0.098 281)
XYZxyz(1.2614, 0.6723, 4.9128)
Luminance0.0067 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120840 #364008
analogous
#081A40 #120840 #2E0840
triadic
#120840 #401208 #084012
tetradic
#120840 #40081A #364008 #08402E
square
#120840 #40081A #364008 #08402E
split-complementary
#120840 #402E08 #1A4008
monochromatic
#08031B #08031B #120840 #210F76 #3116AD

Accessibility & contrast

On white

18.51
#120840 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#120840 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #120840
18.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120840#FFFFFF#000000##FFFFFF
##1208401.0018.511.1318.51
#FFFFFF18.511.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001542
Deuteranopia (green-blind)
#00113F
Tritanopia (blue-blind)
#001824
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #120840;
/* rgb */ color: rgb(18, 8, 64);
/* oklch */ color: oklch(19.9% 0.098 281.0);
Tailwind
colors: {
  custom: {
    50: '#574975',
    500: '#120840',
    950: '#000000',
  },
}
SCSS
$custom: #120840;
$custom-light: #574975;
$custom-dark: #000000;
JSON
{
  "hex": "#120840",
  "rgb": {
    "r": 18,
    "g": 8,
    "b": 64
  },
  "hsl": {
    "h": 250.714,
    "s": 77.778,
    "l": 14.118
  },
  "oklch": {
    "l": 0.19942,
    "c": 0.09833,
    "h": 281
  },
  "luminance": 0.00672
}

Semantic roles & 50–950 ramp

primary
#120840
secondary
#6F7E25
accent
#F434D2
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040108
muted
#79777B

Preview Lab

Preview with #120840

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

Preview Lab → · Contrast checker → · Palette generator →

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