#120844#120844

#120844 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.4% C 0.104 H 279.6°. Best body text is #FFFFFF at 18.36:1 contrast (WCAG AA passes).

Color values

HEX#120844
RGBrgb(18, 8, 68)
HSLhsl(250, 79%, 15%)
HSVhsv(250, 88%, 27%)
CMYKcmyk(73.5%, 88.2%, 0%, 73.3%)
CIE-LABlab(6.50, 24.98, -35.29)
CIE-LCHlch(6.50, 43.24, 305.29°)
OKLaboklab(20.44% 0.0174 -0.1024)
OKLCHoklch(20.44% 0.104 279.6)
XYZxyz(1.3793, 0.7195, 5.5339)
Luminance0.0072 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120844 #3A4408
analogous
#081C44 #120844 #300844
triadic
#120844 #441208 #084412
tetradic
#120844 #44081C #3A4408 #084430
square
#120844 #44081C #3A4408 #084430
split-complementary
#120844 #443008 #1C4408
monochromatic
#07031B #07031B #120844 #200E7B #2F15B2

Accessibility & contrast

On white

18.36
#120844 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#120844 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #120844
18.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120844#FFFFFF#000000##FFFFFF
##1208441.0018.361.1418.36
#FFFFFF18.361.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001746
Deuteranopia (green-blind)
#001243
Tritanopia (blue-blind)
#001A26
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #120844;
/* rgb */ color: rgb(18, 8, 68);
/* oklch */ color: oklch(20.4% 0.104 279.6);
Tailwind
colors: {
  custom: {
    50: '#594979',
    500: '#120844',
    950: '#000000',
  },
}
SCSS
$custom: #120844;
$custom-light: #594979;
$custom-dark: #000000;
JSON
{
  "hex": "#120844",
  "rgb": {
    "r": 18,
    "g": 8,
    "b": 68
  },
  "hsl": {
    "h": 250,
    "s": 78.947,
    "l": 14.902
  },
  "oklch": {
    "l": 0.20439,
    "c": 0.10388,
    "h": 279.6
  },
  "luminance": 0.0072
}

Semantic roles & 50–950 ramp

primary
#120844
secondary
#738226
accent
#F532D5
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040109
muted
#79777B

Preview Lab

Preview with #120844

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

Preview Lab → · Contrast checker → · Palette generator →

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