#120239#120239

#120239 is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 18.0% C 0.098 H 286.3°. Best body text is #FFFFFF at 19.21:1 contrast (WCAG AA passes).

Color values

HEX#120239
RGBrgb(18, 2, 57)
HSLhsl(257, 93%, 12%)
HSVhsv(257, 96%, 22%)
CMYKcmyk(68.4%, 96.5%, 0%, 77.6%)
CIE-LABlab(4.22, 22.74, -31.10)
CIE-LCHlch(4.22, 38.53, 306.18°)
OKLaboklab(17.95% 0.0273 -0.0937)
OKLCHoklch(17.95% 0.098 286.3)
XYZxyz(1.0095, 0.4674, 3.9071)
Luminance0.0047 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120239 #293902
analogous
#020E39 #120239 #2E0239
triadic
#120239 #391202 #023912
tetradic
#120239 #39020E #293902 #02392E
square
#120239 #39020E #293902 #02392E
split-complementary
#120239 #392E02 #0E3902
monochromatic
#09011E #09011E #120239 #250474 #3706AF

Accessibility & contrast

On white

19.21
#120239 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #120239
19.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120239#FFFFFF#000000##FFFFFF
##1202391.0019.211.0919.21
#FFFFFF19.211.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00103A
Deuteranopia (green-blind)
#000D38
Tritanopia (blue-blind)
#01121E
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #120239;
/* rgb */ color: rgb(18, 2, 57);
/* oklch */ color: oklch(18.0% 0.098 286.3);
Tailwind
colors: {
  custom: {
    50: '#554670',
    500: '#120239',
    950: '#000000',
  },
}
SCSS
$custom: #120239;
$custom-light: #554670;
$custom-dark: #000000;
JSON
{
  "hex": "#120239",
  "rgb": {
    "r": 18,
    "g": 2,
    "b": 57
  },
  "hsl": {
    "h": 257.455,
    "s": 93.22,
    "l": 11.569
  },
  "oklch": {
    "l": 0.17951,
    "c": 0.0976,
    "h": 286.3
  },
  "luminance": 0.00467
}

Semantic roles & 50–950 ramp

primary
#120239
secondary
#607D1A
accent
#FF29C1
background
#F5F3F6
surface
#E9E5EC
border
#C5C1C7
text
#030007
muted
#78777A

Preview Lab

Preview with #120239

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

Preview Lab → · Contrast checker → · Palette generator →

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