#120336#120336

#120336 is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 17.8% C 0.092 H 287.4°. Best body text is #FFFFFF at 19.23:1 contrast (WCAG AA passes).

Color values

HEX#120336
RGBrgb(18, 3, 54)
HSLhsl(258, 89%, 11%)
HSVhsv(258, 94%, 21%)
CMYKcmyk(66.7%, 94.4%, 0%, 78.8%)
CIE-LABlab(4.16, 20.74, -29.01)
CIE-LCHlch(4.16, 35.66, 305.56°)
OKLaboklab(17.76% 0.0276 -0.0878)
OKLCHoklch(17.76% 0.092 287.4)
XYZxyz(0.9477, 0.4600, 3.5282)
Luminance0.0046 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120336 #273603
analogous
#030D36 #120336 #2B0336
triadic
#120336 #361203 #033612
tetradic
#120336 #36030D #273603 #03362B
square
#120336 #36030D #273603 #03362B
split-complementary
#120336 #362B03 #0D3603
monochromatic
#0A021D #0A021D #120336 #250670 #3909AA

Accessibility & contrast

On white

19.23
#120336 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.09
#120336 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #120336
19.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120336#FFFFFF#000000##FFFFFF
##1203361.0019.231.0919.23
#FFFFFF19.231.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001037
Deuteranopia (green-blind)
#000D35
Tritanopia (blue-blind)
#03111C
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #120336;
/* rgb */ color: rgb(18, 3, 54);
/* oklch */ color: oklch(17.8% 0.092 287.4);
Tailwind
colors: {
  custom: {
    50: '#54476d',
    500: '#120336',
    950: '#000000',
  },
}
SCSS
$custom: #120336;
$custom-light: #54476d;
$custom-dark: #000000;
JSON
{
  "hex": "#120336",
  "rgb": {
    "r": 18,
    "g": 3,
    "b": 54
  },
  "hsl": {
    "h": 257.647,
    "s": 89.474,
    "l": 11.176
  },
  "oklch": {
    "l": 0.17763,
    "c": 0.09205,
    "h": 287.4
  },
  "luminance": 0.0046
}

Semantic roles & 50–950 ramp

primary
#120336
secondary
#5E791C
accent
#FF29C0
background
#F5F4F6
surface
#E9E6EC
border
#C5C2C7
text
#030007
muted
#78777A

Preview Lab

Preview with #120336

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

Preview Lab → · Contrast checker → · Palette generator →

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