#120A36#120A36

#120A36 is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 19.1% C 0.081 H 284.0°. Best body text is #FFFFFF at 18.71:1 contrast (WCAG AA passes).

Color values

HEX#120A36
RGBrgb(18, 10, 54)
HSLhsl(251, 69%, 13%)
HSVhsv(251, 81%, 21%)
CMYKcmyk(66.7%, 81.5%, 0%, 78.8%)
CIE-LABlab(5.53, 17.62, -26.80)
CIE-LCHlch(5.53, 32.07, 303.33°)
OKLaboklab(19.11% 0.0196 -0.0786)
OKLCHoklch(19.11% 0.081 284)
XYZxyz(1.0236, 0.6120, 3.5535)
Luminance0.0061 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120A36 #2E360A
analogous
#0A1836 #120A36 #280A36
triadic
#120A36 #36120A #0A3612
tetradic
#120A36 #360A18 #2E360A #0A3628
square
#120A36 #360A18 #2E360A #0A3628
split-complementary
#120A36 #36280A #18360A
monochromatic
#09051A #09051A #120A36 #23146A #341D9D

Accessibility & contrast

On white

18.71
#120A36 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#120A36 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #120A36
18.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120A36#FFFFFF#000000##FFFFFF
##120A361.0018.711.1218.71
#FFFFFF18.711.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001337
Deuteranopia (green-blind)
#001135
Tritanopia (blue-blind)
#03161E
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #120a36;
/* rgb */ color: rgb(18, 10, 54);
/* oklch */ color: oklch(19.1% 0.081 284.0);
Tailwind
colors: {
  custom: {
    50: '#544a6d',
    500: '#120a36',
    950: '#000000',
  },
}
SCSS
$custom: #120a36;
$custom-light: #544a6d;
$custom-dark: #000000;
JSON
{
  "hex": "#120a36",
  "rgb": {
    "r": 18,
    "g": 10,
    "b": 54
  },
  "hsl": {
    "h": 250.909,
    "s": 68.75,
    "l": 12.549
  },
  "oklch": {
    "l": 0.19112,
    "c": 0.08105,
    "h": 284
  },
  "luminance": 0.00612
}

Semantic roles & 50–950 ramp

primary
#120A36
secondary
#667328
accent
#EC3CCC
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#030107
muted
#78777A

Preview Lab

Preview with #120A36

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

Preview Lab → · Contrast checker → · Palette generator →

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