#120D40#120D40

#120D40 is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 20.8% C 0.092 H 279.1°. Best body text is #FFFFFF at 18.14:1 contrast (WCAG AA passes).

Color values

HEX#120D40
RGBrgb(18, 13, 64)
HSLhsl(246, 66%, 15%)
HSVhsv(246, 80%, 25%)
CMYKcmyk(71.9%, 79.7%, 0%, 74.9%)
CIE-LABlab(7.10, 20.55, -31.46)
CIE-LCHlch(7.10, 37.58, 303.16°)
OKLaboklab(20.77% 0.0146 -0.0909)
OKLCHoklch(20.77% 0.092 279.1)
XYZxyz(1.3185, 0.7865, 4.9318)
Luminance0.0079 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120D40 #3B400D
analogous
#0D2240 #120D40 #2B0D40
triadic
#120D40 #40120D #0D4012
tetradic
#120D40 #400D22 #3B400D #0D402B
square
#120D40 #400D22 #3B400D #0D402B
split-complementary
#120D40 #402B0D #22400D
monochromatic
#070519 #070519 #120D40 #201773 #2F22A6

Accessibility & contrast

On white

18.14
#120D40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #120D40
18.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120D40#FFFFFF#000000##FFFFFF
##120D401.0018.141.1618.14
#FFFFFF18.141.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001842
Deuteranopia (green-blind)
#00143F
Tritanopia (blue-blind)
#001B25
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #120d40;
/* rgb */ color: rgb(18, 13, 64);
/* oklch */ color: oklch(20.8% 0.092 279.1);
Tailwind
colors: {
  custom: {
    50: '#574c75',
    500: '#120d40',
    950: '#000000',
  },
}
SCSS
$custom: #120d40;
$custom-light: #574c75;
$custom-dark: #000000;
JSON
{
  "hex": "#120d40",
  "rgb": {
    "r": 18,
    "g": 13,
    "b": 64
  },
  "hsl": {
    "h": 245.882,
    "s": 66.234,
    "l": 15.098
  },
  "oklch": {
    "l": 0.20773,
    "c": 0.09209,
    "h": 279.1
  },
  "luminance": 0.00787
}

Semantic roles & 50–950 ramp

primary
#120D40
secondary
#747C2D
accent
#E93FD8
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030108
muted
#78777B

Preview Lab

Preview with #120D40

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

Preview Lab → · Contrast checker → · Palette generator →

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