#120940#120940

#120940 is a very dark, moderate blue. Relative luminance 0.007; OKLCH L 20.1% C 0.097 H 280.6°. Best body text is #FFFFFF at 18.44:1 contrast (WCAG AA passes).

Color values

HEX#120940
RGBrgb(18, 9, 64)
HSLhsl(250, 75%, 14%)
HSVhsv(250, 86%, 25%)
CMYKcmyk(71.9%, 85.9%, 0%, 74.9%)
CIE-LABlab(6.27, 22.73, -32.82)
CIE-LCHlch(6.27, 39.93, 304.70°)
OKLaboklab(20.11% 0.0179 -0.0954)
OKLCHoklch(20.11% 0.097 280.6)
XYZxyz(1.2723, 0.6940, 4.9164)
Luminance0.0069 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120940 #374009
analogous
#091C40 #120940 #2E0940
triadic
#120940 #401209 #094012
tetradic
#120940 #40091C #374009 #09402E
square
#120940 #40091C #374009 #09402E
split-complementary
#120940 #402E09 #1C4009
monochromatic
#08041B #08041B #120940 #211176 #3018AB

Accessibility & contrast

On white

18.44
#120940 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#120940 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #120940
18.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120940#FFFFFF#000000##FFFFFF
##1209401.0018.441.1418.44
#FFFFFF18.441.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001642
Deuteranopia (green-blind)
#00123F
Tritanopia (blue-blind)
#001924
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #120940;
/* rgb */ color: rgb(18, 9, 64);
/* oklch */ color: oklch(20.1% 0.097 280.6);
Tailwind
colors: {
  custom: {
    50: '#574a75',
    500: '#120940',
    950: '#000000',
  },
}
SCSS
$custom: #120940;
$custom-light: #574a75;
$custom-dark: #000000;
JSON
{
  "hex": "#120940",
  "rgb": {
    "r": 18,
    "g": 9,
    "b": 64
  },
  "hsl": {
    "h": 249.818,
    "s": 75.342,
    "l": 14.314
  },
  "oklch": {
    "l": 0.20105,
    "c": 0.09709,
    "h": 280.6
  },
  "luminance": 0.00694
}

Semantic roles & 50–950 ramp

primary
#120940
secondary
#707E27
accent
#F236D3
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040108
muted
#79777B

Preview Lab

Preview with #120940

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

Preview Lab → · Contrast checker → · Palette generator →

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