#120938#120938

#120938 is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 19.2% C 0.085 H 283.6°. Best body text is #FFFFFF at 18.72:1 contrast (WCAG AA passes).

Color values

HEX#120938
RGBrgb(18, 9, 56)
HSLhsl(251, 72%, 13%)
HSVhsv(251, 84%, 22%)
CMYKcmyk(67.9%, 83.9%, 0%, 78%)
CIE-LABlab(5.50, 19.04, -28.30)
CIE-LCHlch(5.50, 34.11, 303.94°)
OKLaboklab(19.16% 0.0201 -0.0831)
OKLCHoklch(19.16% 0.085 283.6)
XYZxyz(1.0607, 0.6094, 3.8023)
Luminance0.0061 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120938 #2F3809
analogous
#091838 #120938 #290938
triadic
#120938 #381209 #093812
tetradic
#120938 #380918 #2F3809 #093829
square
#120938 #380918 #2F3809 #093829
split-complementary
#120938 #382909 #183809
monochromatic
#08041A #08041A #120938 #23116D #341AA1

Accessibility & contrast

On white

18.72
#120938 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#120938 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #120938
18.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120938#FFFFFF#000000##FFFFFF
##1209381.0018.721.1218.72
#FFFFFF18.721.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001439
Deuteranopia (green-blind)
#001137
Tritanopia (blue-blind)
#01161F
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #120938;
/* rgb */ color: rgb(18, 9, 56);
/* oklch */ color: oklch(19.2% 0.085 283.6);
Tailwind
colors: {
  custom: {
    50: '#554a6f',
    500: '#120938',
    950: '#000000',
  },
}
SCSS
$custom: #120938;
$custom-light: #554a6f;
$custom-dark: #000000;
JSON
{
  "hex": "#120938",
  "rgb": {
    "r": 18,
    "g": 9,
    "b": 56
  },
  "hsl": {
    "h": 251.489,
    "s": 72.308,
    "l": 12.745
  },
  "oklch": {
    "l": 0.19159,
    "c": 0.08548,
    "h": 283.6
  },
  "luminance": 0.00609
}

Semantic roles & 50–950 ramp

primary
#120938
secondary
#677627
accent
#EF39CC
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#030107
muted
#78777A

Preview Lab

Preview with #120938

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

Preview Lab → · Contrast checker → · Palette generator →

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