#120232#120232

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

Color values

HEX#120232
RGBrgb(18, 2, 50)
HSLhsl(260, 92%, 10%)
HSVhsv(260, 96%, 20%)
CMYKcmyk(64%, 96%, 0%, 80.4%)
CIE-LABlab(3.63, 19.02, -26.89)
CIE-LCHlch(3.63, 32.94, 305.27°)
OKLaboklab(17.03% 0.0309 -0.0832)
OKLCHoklch(17.03% 0.089 290.4)
XYZxyz(0.8467, 0.4023, 3.0500)
Luminance0.0040 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120232 #223202
analogous
#020A32 #120232 #2A0232
triadic
#120232 #321202 #023212
tetradic
#120232 #32020A #223202 #02322A
square
#120232 #32020A #223202 #02322A
split-complementary
#120232 #322A02 #0A3202
monochromatic
#0B011D #0B011D #120232 #27046D #3C07A8

Accessibility & contrast

On white

19.44
#120232 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.08
#120232 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #120232
19.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120232#FFFFFF#000000##FFFFFF
##1202321.0019.441.0819.44
#FFFFFF19.441.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E33
Deuteranopia (green-blind)
#000C31
Tritanopia (blue-blind)
#060F1A
Achromatopsia (no color)
#0D0D0D

Design tokens & code

CSS
--color: #120232;
/* rgb */ color: rgb(18, 2, 50);
/* oklch */ color: oklch(17.0% 0.089 290.4);
Tailwind
colors: {
  custom: {
    50: '#53476a',
    500: '#120232',
    950: '#000000',
  },
}
SCSS
$custom: #120232;
$custom-light: #53476a;
$custom-dark: #000000;
JSON
{
  "hex": "#120232",
  "rgb": {
    "r": 18,
    "g": 2,
    "b": 50
  },
  "hsl": {
    "h": 260,
    "s": 92.308,
    "l": 10.196
  },
  "oklch": {
    "l": 0.17031,
    "c": 0.08877,
    "h": 290.4
  },
  "luminance": 0.00402
}

Semantic roles & 50–950 ramp

primary
#120232
secondary
#577619
accent
#FF29B8
background
#F4F3F6
surface
#E7E5EB
border
#C3C1C6
text
#030006
muted
#78777A

Preview Lab

Preview with #120232

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

Preview Lab → · Contrast checker → · Palette generator →

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