#120D4B#120D4B

#120D4B is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 22.1% C 0.108 H 276.4°. Best body text is #FFFFFF at 17.72:1 contrast (WCAG AA passes).

Color values

HEX#120D4B
RGBrgb(18, 13, 75)
HSLhsl(245, 70%, 17%)
HSVhsv(245, 83%, 29%)
CMYKcmyk(76%, 82.7%, 0%, 70.6%)
CIE-LABlab(8.34, 24.87, -37.17)
CIE-LCHlch(8.34, 44.72, 303.79°)
OKLaboklab(22.06% 0.0121 -0.1074)
OKLCHoklch(22.06% 0.108 276.4)
XYZxyz(1.6630, 0.9243, 6.7460)
Luminance0.0092 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120D4B #464B0D
analogous
#0D274B #120D4B #310D4B
triadic
#120D4B #4B120D #0D4B12
tetradic
#120D4B #4B0D27 #464B0D #0D4B31
square
#120D4B #4B0D27 #464B0D #0D4B31
split-complementary
#120D4B #4B310D #274B0D
monochromatic
#06051A #06051A #120D4B #1F167F #2B1FB3

Accessibility & contrast

On white

17.72
#120D4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#120D4B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #120D4B
17.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120D4B#FFFFFF#000000##FFFFFF
##120D4B1.0017.721.1817.72
#FFFFFF17.721.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B4D
Deuteranopia (green-blind)
#00154A
Tritanopia (blue-blind)
#001F2B
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #120d4b;
/* rgb */ color: rgb(18, 13, 75);
/* oklch */ color: oklch(22.1% 0.108 276.4);
Tailwind
colors: {
  custom: {
    50: '#5a4c7e',
    500: '#120d4b',
    950: '#000000',
  },
}
SCSS
$custom: #120d4b;
$custom-light: #5a4c7e;
$custom-dark: #000000;
JSON
{
  "hex": "#120d4b",
  "rgb": {
    "r": 18,
    "g": 13,
    "b": 75
  },
  "hsl": {
    "h": 244.839,
    "s": 70.455,
    "l": 17.255
  },
  "oklch": {
    "l": 0.22064,
    "c": 0.10809,
    "h": 276.4
  },
  "luminance": 0.00924
}

Semantic roles & 50–950 ramp

primary
#120D4B
secondary
#7F862E
accent
#ED3BDF
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04010A
muted
#79777C

Preview Lab

Preview with #120D4B

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

Preview Lab → · Contrast checker → · Palette generator →

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