#120D5C#120D5C

#120D5C is a very dark, vivid blue. Relative luminance 0.012; OKLCH L 24.2% C 0.131 H 273.3°. Best body text is #FFFFFF at 16.97:1 contrast (WCAG AA passes).

Color values

HEX#120D5C
RGBrgb(18, 13, 92)
HSLhsl(244, 75%, 21%)
HSVhsv(244, 86%, 36%)
CMYKcmyk(80.4%, 85.9%, 0%, 63.9%)
CIE-LABlab(10.48, 31.02, -45.28)
CIE-LCHlch(10.48, 54.88, 304.41°)
OKLaboklab(24.19% 0.0076 -0.131)
OKLCHoklch(24.19% 0.131 273.3)
XYZxyz(2.3245, 1.1889, 10.2301)
Luminance0.0119 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120D5C #575C0D
analogous
#0D305C #120D5C #390D5C
triadic
#120D5C #5C120D #0D5C12
tetradic
#120D5C #5C0D30 #575C0D #0D5C39
square
#120D5C #5C0D30 #575C0D #0D5C39
split-complementary
#120D5C #5C390D #305C0D
monochromatic
#05041B #080526 #120D5C #1C1592 #271CC7

Accessibility & contrast

On white

16.97
#120D5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#120D5C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #120D5C
16.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120D5C#FFFFFF#000000##FFFFFF
##120D5C1.0016.971.2416.97
#FFFFFF16.971.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00205E
Deuteranopia (green-blind)
#00195B
Tritanopia (blue-blind)
#002635
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #120d5c;
/* rgb */ color: rgb(18, 13, 92);
/* oklch */ color: oklch(24.2% 0.131 273.3);
Tailwind
colors: {
  custom: {
    50: '#5f4e8b',
    500: '#120d5c',
    950: '#000000',
  },
}
SCSS
$custom: #120d5c;
$custom-light: #5f4e8b;
$custom-dark: #000000;
JSON
{
  "hex": "#120d5c",
  "rgb": {
    "r": 18,
    "g": 13,
    "b": 92
  },
  "hsl": {
    "h": 243.797,
    "s": 75.238,
    "l": 20.588
  },
  "oklch": {
    "l": 0.24185,
    "c": 0.1312,
    "h": 273.3
  },
  "luminance": 0.01189
}

Semantic roles & 50–950 ramp

primary
#120D5C
secondary
#90962F
accent
#F236E6
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#05010C
muted
#79777D

Preview Lab

Preview with #120D5C

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

Preview Lab → · Contrast checker → · Palette generator →

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