#120740#120740

#120740 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 19.8% C 0.100 H 281.3°. Best body text is #FFFFFF at 18.58:1 contrast (WCAG AA passes).

Color values

HEX#120740
RGBrgb(18, 7, 64)
HSLhsl(252, 80%, 14%)
HSVhsv(252, 89%, 25%)
CMYKcmyk(71.9%, 89.1%, 0%, 74.9%)
CIE-LABlab(5.88, 23.74, -33.47)
CIE-LCHlch(5.88, 41.03, 305.36°)
OKLaboklab(19.78% 0.0195 -0.0977)
OKLCHoklch(19.78% 0.1 281.3)
XYZxyz(1.2506, 0.6506, 4.9092)
Luminance0.0065 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120740 #354007
analogous
#071940 #120740 #2F0740
triadic
#120740 #401207 #074012
tetradic
#120740 #400719 #354007 #07402F
square
#120740 #400719 #354007 #07402F
split-complementary
#120740 #402F07 #194007
monochromatic
#08031C #08031C #120740 #220D77 #3113AE

Accessibility & contrast

On white

18.58
#120740 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#120740 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #120740
18.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120740#FFFFFF#000000##FFFFFF
##1207401.0018.581.1318.58
#FFFFFF18.581.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001542
Deuteranopia (green-blind)
#00113F
Tritanopia (blue-blind)
#001823
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #120740;
/* rgb */ color: rgb(18, 7, 64);
/* oklch */ color: oklch(19.8% 0.100 281.3);
Tailwind
colors: {
  custom: {
    50: '#574975',
    500: '#120740',
    950: '#000000',
  },
}
SCSS
$custom: #120740;
$custom-light: #574975;
$custom-dark: #000000;
JSON
{
  "hex": "#120740",
  "rgb": {
    "r": 18,
    "g": 7,
    "b": 64
  },
  "hsl": {
    "h": 251.579,
    "s": 80.282,
    "l": 13.922
  },
  "oklch": {
    "l": 0.19775,
    "c": 0.0996,
    "h": 281.3
  },
  "luminance": 0.00651
}

Semantic roles & 50–950 ramp

primary
#120740
secondary
#6D7F24
accent
#F731D1
background
#F5F4F7
surface
#E9E6ED
border
#C5C2C8
text
#040008
muted
#79777B

Preview Lab

Preview with #120740

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

Preview Lab → · Contrast checker → · Palette generator →

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