#120440#120440

#120440 is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 19.3% C 0.104 H 282.3°. Best body text is #FFFFFF at 18.80:1 contrast (WCAG AA passes).

Color values

HEX#120440
RGBrgb(18, 4, 64)
HSLhsl(254, 88%, 13%)
HSVhsv(254, 94%, 25%)
CMYKcmyk(71.9%, 93.8%, 0%, 74.9%)
CIE-LABlab(5.29, 25.24, -34.43)
CIE-LCHlch(5.29, 42.69, 306.25°)
OKLaboklab(19.26% 0.022 -0.1012)
OKLCHoklch(19.26% 0.104 282.3)
XYZxyz(1.2180, 0.5855, 4.8983)
Luminance0.0059 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120440 #324004
analogous
#041440 #120440 #300440
triadic
#120440 #401204 #044012
tetradic
#120440 #400414 #324004 #044030
square
#120440 #400414 #324004 #044030
split-complementary
#120440 #403004 #144004
monochromatic
#08021D #08021D #120440 #22087A #320BB3

Accessibility & contrast

On white

18.80
#120440 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #120440
18.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120440#FFFFFF#000000##FFFFFF
##1204401.0018.801.1218.80
#FFFFFF18.801.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001342
Deuteranopia (green-blind)
#000F3F
Tritanopia (blue-blind)
#001623
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #120440;
/* rgb */ color: rgb(18, 4, 64);
/* oklch */ color: oklch(19.3% 0.104 282.3);
Tailwind
colors: {
  custom: {
    50: '#584776',
    500: '#120440',
    950: '#000000',
  },
}
SCSS
$custom: #120440;
$custom-light: #584776;
$custom-dark: #000000;
JSON
{
  "hex": "#120440",
  "rgb": {
    "r": 18,
    "g": 4,
    "b": 64
  },
  "hsl": {
    "h": 254,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.1926,
    "c": 0.10357,
    "h": 282.3
  },
  "luminance": 0.00586
}

Semantic roles & 50–950 ramp

primary
#120440
secondary
#6A811F
accent
#FE29CD
background
#F5F4F7
surface
#E9E6ED
border
#C5C2C8
text
#040008
muted
#79777B

Preview Lab

Preview with #120440

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

Preview Lab → · Contrast checker → · Palette generator →

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