#120A30#120A30

#120A30 is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 18.5% C 0.072 H 286.8°. Best body text is #FFFFFF at 18.89:1 contrast (WCAG AA passes).

Color values

HEX#120A30
RGBrgb(18, 10, 48)
HSLhsl(253, 66%, 11%)
HSVhsv(253, 79%, 19%)
CMYKcmyk(62.5%, 79.2%, 0%, 81.2%)
CIE-LABlab(5.05, 14.71, -23.14)
CIE-LCHlch(5.05, 27.42, 302.44°)
OKLaboklab(18.46% 0.0207 -0.0687)
OKLCHoklch(18.46% 0.072 286.8)
XYZxyz(0.8913, 0.5590, 2.8567)
Luminance0.0056 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120A30 #28300A
analogous
#0A1530 #120A30 #250A30
triadic
#120A30 #30120A #0A3012
tetradic
#120A30 #300A15 #28300A #0A3025
square
#120A30 #300A15 #28300A #0A3025
split-complementary
#120A30 #30250A #15300A
monochromatic
#090519 #090519 #120A30 #251563 #381F95

Accessibility & contrast

On white

18.89
#120A30 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#120A30 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #120A30
18.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120A30#FFFFFF#000000##FFFFFF
##120A301.0018.891.1118.89
#FFFFFF18.891.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001231
Deuteranopia (green-blind)
#00102F
Tritanopia (blue-blind)
#07131B
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #120a30;
/* rgb */ color: rgb(18, 10, 48);
/* oklch */ color: oklch(18.5% 0.072 286.8);
Tailwind
colors: {
  custom: {
    50: '#524a68',
    500: '#120a30',
    950: '#000000',
  },
}
SCSS
$custom: #120a30;
$custom-light: #524a68;
$custom-dark: #000000;
JSON
{
  "hex": "#120a30",
  "rgb": {
    "r": 18,
    "g": 10,
    "b": 48
  },
  "hsl": {
    "h": 252.632,
    "s": 65.517,
    "l": 11.373
  },
  "oklch": {
    "l": 0.18464,
    "c": 0.07173,
    "h": 286.8
  },
  "luminance": 0.00559
}

Semantic roles & 50–950 ramp

primary
#120A30
secondary
#5F6D29
accent
#E83FC5
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020106
muted
#78777A

Preview Lab

Preview with #120A30

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

Preview Lab → · Contrast checker → · Palette generator →

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