#120D3C#120D3C

#120D3C is a very dark, moderate blue. Relative luminance 0.007; OKLCH L 20.3% C 0.086 H 280.3°. Best body text is #FFFFFF at 18.28:1 contrast (WCAG AA passes).

Color values

HEX#120D3C
RGBrgb(18, 13, 60)
HSLhsl(246, 64%, 14%)
HSVhsv(246, 78%, 24%)
CMYKcmyk(70%, 78.3%, 0%, 76.5%)
CIE-LABlab(6.71, 18.83, -29.24)
CIE-LCHlch(6.71, 34.78, 302.78°)
OKLaboklab(20.33% 0.0154 -0.0846)
OKLCHoklch(20.33% 0.086 280.3)
XYZxyz(1.2087, 0.7426, 4.3537)
Luminance0.0074 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120D3C #373C0D
analogous
#0D203C #120D3C #2A0D3C
triadic
#120D3C #3C120D #0D3C12
tetradic
#120D3C #3C0D20 #373C0D #0D3C2A
square
#120D3C #3C0D20 #373C0D #0D3C2A
split-complementary
#120D3C #3C2A0D #203C0D
monochromatic
#080519 #080519 #120D3C #21186E #3023A1

Accessibility & contrast

On white

18.28
#120D3C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#120D3C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #120D3C
18.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120D3C#FFFFFF#000000##FFFFFF
##120D3C1.0018.281.1518.28
#FFFFFF18.281.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00173D
Deuteranopia (green-blind)
#00133B
Tritanopia (blue-blind)
#001923
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #120d3c;
/* rgb */ color: rgb(18, 13, 60);
/* oklch */ color: oklch(20.3% 0.086 280.3);
Tailwind
colors: {
  custom: {
    50: '#564c72',
    500: '#120d3c',
    950: '#000000',
  },
}
SCSS
$custom: #120d3c;
$custom-light: #564c72;
$custom-dark: #000000;
JSON
{
  "hex": "#120d3c",
  "rgb": {
    "r": 18,
    "g": 13,
    "b": 60
  },
  "hsl": {
    "h": 246.383,
    "s": 64.384,
    "l": 14.314
  },
  "oklch": {
    "l": 0.20325,
    "c": 0.08602,
    "h": 280.3
  },
  "luminance": 0.00743
}

Semantic roles & 50–950 ramp

primary
#120D3C
secondary
#70782D
accent
#E740D6
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#030108
muted
#78777B

Preview Lab

Preview with #120D3C

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

Preview Lab → · Contrast checker → · Palette generator →

#120D3C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva