#120A34#120A34

#120A34 is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 18.9% C 0.078 H 284.9°. Best body text is #FFFFFF at 18.77:1 contrast (WCAG AA passes).

Color values

HEX#120A34
RGBrgb(18, 10, 52)
HSLhsl(251, 68%, 12%)
HSVhsv(251, 81%, 20%)
CMYKcmyk(65.4%, 80.8%, 0%, 79.6%)
CIE-LABlab(5.36, 16.66, -25.60)
CIE-LCHlch(5.36, 30.54, 303.06°)
OKLaboklab(18.89% 0.02 -0.0754)
OKLCHoklch(18.89% 0.078 284.9)
XYZxyz(0.9776, 0.5936, 3.3112)
Luminance0.0059 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120A34 #2C340A
analogous
#0A1734 #120A34 #270A34
triadic
#120A34 #34120A #0A3412
tetradic
#120A34 #340A17 #2C340A #0A3427
square
#120A34 #340A17 #2C340A #0A3427
split-complementary
#120A34 #34270A #17340A
monochromatic
#09051A #09051A #120A34 #241467 #361E9B

Accessibility & contrast

On white

18.77
#120A34 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #120A34
18.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120A34#FFFFFF#000000##FFFFFF
##120A341.0018.771.1218.77
#FFFFFF18.771.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001335
Deuteranopia (green-blind)
#001033
Tritanopia (blue-blind)
#04151D
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #120a34;
/* rgb */ color: rgb(18, 10, 52);
/* oklch */ color: oklch(18.9% 0.078 284.9);
Tailwind
colors: {
  custom: {
    50: '#544a6c',
    500: '#120a34',
    950: '#000000',
  },
}
SCSS
$custom: #120a34;
$custom-light: #544a6c;
$custom-dark: #000000;
JSON
{
  "hex": "#120a34",
  "rgb": {
    "r": 18,
    "g": 10,
    "b": 52
  },
  "hsl": {
    "h": 251.429,
    "s": 67.742,
    "l": 12.157
  },
  "oklch": {
    "l": 0.18892,
    "c": 0.07799,
    "h": 284.9
  },
  "luminance": 0.00594
}

Semantic roles & 50–950 ramp

primary
#120A34
secondary
#637128
accent
#EB3DCA
background
#F5F4F6
surface
#E8E7EB
border
#C4C3C6
text
#030107
muted
#78777A

Preview Lab

Preview with #120A34

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

Preview Lab → · Contrast checker → · Palette generator →

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