#120334#120334

#120334 is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 17.5% C 0.089 H 288.6°. Best body text is #FFFFFF at 19.29:1 contrast (WCAG AA passes).

Color values

HEX#120334
RGBrgb(18, 3, 52)
HSLhsl(258, 89%, 11%)
HSVhsv(258, 94%, 20%)
CMYKcmyk(65.4%, 94.2%, 0%, 79.6%)
CIE-LABlab(3.99, 19.69, -27.80)
CIE-LCHlch(3.99, 34.07, 305.30°)
OKLaboklab(17.51% 0.0285 -0.0848)
OKLCHoklch(17.51% 0.089 288.6)
XYZxyz(0.9017, 0.4416, 3.2859)
Luminance0.0044 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120334 #253403
analogous
#030C34 #120334 #2A0334
triadic
#120334 #341203 #033412
tetradic
#120334 #34030C #253403 #03342A
square
#120334 #34030C #253403 #03342A
split-complementary
#120334 #342A03 #0C3403
monochromatic
#0A021D #0A021D #120334 #26066E #3A0AA8

Accessibility & contrast

On white

19.29
#120334 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #120334
19.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120334#FFFFFF#000000##FFFFFF
##1203341.0019.291.0919.29
#FFFFFF19.291.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F35
Deuteranopia (green-blind)
#000D33
Tritanopia (blue-blind)
#05111B
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #120334;
/* rgb */ color: rgb(18, 3, 52);
/* oklch */ color: oklch(17.5% 0.089 288.6);
Tailwind
colors: {
  custom: {
    50: '#53476c',
    500: '#120334',
    950: '#000000',
  },
}
SCSS
$custom: #120334;
$custom-light: #53476c;
$custom-dark: #000000;
JSON
{
  "hex": "#120334",
  "rgb": {
    "r": 18,
    "g": 3,
    "b": 52
  },
  "hsl": {
    "h": 258.367,
    "s": 89.091,
    "l": 10.784
  },
  "oklch": {
    "l": 0.17507,
    "c": 0.08944,
    "h": 288.6
  },
  "luminance": 0.00442
}

Semantic roles & 50–950 ramp

primary
#120334
secondary
#5B771C
accent
#FF29BD
background
#F5F4F6
surface
#E8E6EB
border
#C4C2C6
text
#030007
muted
#78777A

Preview Lab

Preview with #120334

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

Preview Lab → · Contrast checker → · Palette generator →

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