#120D3E#120D3E

#120D3E is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 20.5% C 0.089 H 279.7°. Best body text is #FFFFFF at 18.22:1 contrast (WCAG AA passes).

Color values

HEX#120D3E
RGBrgb(18, 13, 62)
HSLhsl(246, 65%, 15%)
HSVhsv(246, 79%, 24%)
CMYKcmyk(71%, 79%, 0%, 75.7%)
CIE-LABlab(6.90, 19.70, -30.36)
CIE-LCHlch(6.90, 36.19, 302.98°)
OKLaboklab(20.55% 0.015 -0.0878)
OKLCHoklch(20.55% 0.089 279.7)
XYZxyz(1.2626, 0.7642, 4.6375)
Luminance0.0076 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120D3E #393E0D
analogous
#0D213E #120D3E #2A0D3E
triadic
#120D3E #3E120D #0D3E12
tetradic
#120D3E #3E0D21 #393E0D #0D3E2A
square
#120D3E #3E0D21 #393E0D #0D3E2A
split-complementary
#120D3E #3E2A0D #213E0D
monochromatic
#070519 #070519 #120D3E #211871 #2F22A3

Accessibility & contrast

On white

18.22
#120D3E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #120D3E
18.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120D3E#FFFFFF#000000##FFFFFF
##120D3E1.0018.221.1518.22
#FFFFFF18.221.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.221.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #120d3e;
/* rgb */ color: rgb(18, 13, 62);
/* oklch */ color: oklch(20.5% 0.089 279.7);
Tailwind
colors: {
  custom: {
    50: '#574c74',
    500: '#120d3e',
    950: '#000000',
  },
}
SCSS
$custom: #120d3e;
$custom-light: #574c74;
$custom-dark: #000000;
JSON
{
  "hex": "#120d3e",
  "rgb": {
    "r": 18,
    "g": 13,
    "b": 62
  },
  "hsl": {
    "h": 246.122,
    "s": 65.333,
    "l": 14.706
  },
  "oklch": {
    "l": 0.20548,
    "c": 0.08907,
    "h": 279.7
  },
  "luminance": 0.00764
}

Semantic roles & 50–950 ramp

primary
#120D3E
secondary
#727A2D
accent
#E840D7
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030108
muted
#78777B

Preview Lab

Preview with #120D3E

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

Preview Lab → · Contrast checker → · Palette generator →

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