#120C3E#120C3E

#120C3E is a very dark, moderate blue. Relative luminance 0.007; OKLCH L 20.4% C 0.090 H 280.1°. Best body text is #FFFFFF at 18.30:1 contrast (WCAG AA passes).

Color values

HEX#120C3E
RGBrgb(18, 12, 62)
HSLhsl(247, 68%, 15%)
HSVhsv(247, 81%, 24%)
CMYKcmyk(71%, 80.6%, 0%, 75.7%)
CIE-LABlab(6.68, 20.28, -30.73)
CIE-LCHlch(6.68, 36.82, 303.43°)
OKLaboklab(20.37% 0.0159 -0.089)
OKLCHoklch(20.37% 0.09 280.1)
XYZxyz(1.2502, 0.7392, 4.6333)
Luminance0.0074 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120C3E #383E0C
analogous
#0C1F3E #120C3E #2B0C3E
triadic
#120C3E #3E120C #0C3E12
tetradic
#120C3E #3E0C1F #383E0C #0C3E2B
square
#120C3E #3E0C1F #383E0C #0C3E2B
split-complementary
#120C3E #3E2B0C #1F3E0C
monochromatic
#07051A #07051A #120C3E #211671 #3020A5

Accessibility & contrast

On white

18.30
#120C3E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #120C3E
18.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120C3E#FFFFFF#000000##FFFFFF
##120C3E1.0018.301.1518.30
#FFFFFF18.301.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00173F
Deuteranopia (green-blind)
#00133D
Tritanopia (blue-blind)
#001A23
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #120c3e;
/* rgb */ color: rgb(18, 12, 62);
/* oklch */ color: oklch(20.4% 0.090 280.1);
Tailwind
colors: {
  custom: {
    50: '#574b74',
    500: '#120c3e',
    950: '#000000',
  },
}
SCSS
$custom: #120c3e;
$custom-light: #574b74;
$custom-dark: #000000;
JSON
{
  "hex": "#120c3e",
  "rgb": {
    "r": 18,
    "g": 12,
    "b": 62
  },
  "hsl": {
    "h": 247.2,
    "s": 67.568,
    "l": 14.51
  },
  "oklch": {
    "l": 0.20368,
    "c": 0.09042,
    "h": 280.1
  },
  "luminance": 0.00739
}

Semantic roles & 50–950 ramp

primary
#120C3E
secondary
#717A2C
accent
#EA3DD6
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030108
muted
#78777B

Preview Lab

Preview with #120C3E

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

Preview Lab → · Contrast checker → · Palette generator →

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