#120D3F#120D3F

#120D3F is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 20.7% C 0.091 H 279.4°. Best body text is #FFFFFF at 18.18:1 contrast (WCAG AA passes).

Color values

HEX#120D3F
RGBrgb(18, 13, 63)
HSLhsl(246, 66%, 15%)
HSVhsv(246, 79%, 25%)
CMYKcmyk(71.4%, 79.4%, 0%, 75.3%)
CIE-LABlab(7.00, 20.13, -30.91)
CIE-LCHlch(7.00, 36.89, 303.07°)
OKLaboklab(20.66% 0.0148 -0.0894)
OKLCHoklch(20.66% 0.091 279.4)
XYZxyz(1.2903, 0.7752, 4.7833)
Luminance0.0077 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120D3F #3A3F0D
analogous
#0D213F #120D3F #2B0D3F
triadic
#120D3F #3F120D #0D3F12
tetradic
#120D3F #3F0D21 #3A3F0D #0D3F2B
square
#120D3F #3F0D21 #3A3F0D #0D3F2B
split-complementary
#120D3F #3F2B0D #213F0D
monochromatic
#070519 #070519 #120D3F #201772 #2F22A4

Accessibility & contrast

On white

18.18
#120D3F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#120D3F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #120D3F
18.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120D3F#FFFFFF#000000##FFFFFF
##120D3F1.0018.181.1618.18
#FFFFFF18.181.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001741
Deuteranopia (green-blind)
#00143E
Tritanopia (blue-blind)
#001A24
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #120d3f;
/* rgb */ color: rgb(18, 13, 63);
/* oklch */ color: oklch(20.7% 0.091 279.4);
Tailwind
colors: {
  custom: {
    50: '#574c75',
    500: '#120d3f',
    950: '#000000',
  },
}
SCSS
$custom: #120d3f;
$custom-light: #574c75;
$custom-dark: #000000;
JSON
{
  "hex": "#120d3f",
  "rgb": {
    "r": 18,
    "g": 13,
    "b": 63
  },
  "hsl": {
    "h": 246,
    "s": 65.789,
    "l": 14.902
  },
  "oklch": {
    "l": 0.2066,
    "c": 0.09059,
    "h": 279.4
  },
  "luminance": 0.00775
}

Semantic roles & 50–950 ramp

primary
#120D3F
secondary
#737B2D
accent
#E93FD8
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030108
muted
#78777B

Preview Lab

Preview with #120D3F

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

Preview Lab → · Contrast checker → · Palette generator →

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