#120D5E#120D5E

#120D5E is a very dark, vivid blue. Relative luminance 0.012; OKLCH L 24.4% C 0.134 H 273.0°. Best body text is #FFFFFF at 16.87:1 contrast (WCAG AA passes).

Color values

HEX#120D5E
RGBrgb(18, 13, 94)
HSLhsl(244, 76%, 21%)
HSVhsv(244, 86%, 37%)
CMYKcmyk(80.9%, 86.2%, 0%, 63.1%)
CIE-LABlab(10.74, 31.72, -46.19)
CIE-LCHlch(10.74, 56.03, 304.48°)
OKLaboklab(24.44% 0.007 -0.1336)
OKLCHoklch(24.44% 0.134 273)
XYZxyz(2.4131, 1.2243, 10.6967)
Luminance0.0123 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120D5E #595E0D
analogous
#0D305E #120D5E #3A0D5E
triadic
#120D5E #5E120D #0D5E12
tetradic
#120D5E #5E0D30 #595E0D #0D5E3A
square
#120D5E #5E0D30 #595E0D #0D5E3A
split-complementary
#120D5E #5E3A0D #305E0D
monochromatic
#05041B #080628 #120D5E #1C1494 #271CCA

Accessibility & contrast

On white

16.87
#120D5E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #120D5E
16.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120D5E#FFFFFF#000000##FFFFFF
##120D5E1.0016.871.2416.87
#FFFFFF16.871.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002160
Deuteranopia (green-blind)
#00195D
Tritanopia (blue-blind)
#002636
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #120d5e;
/* rgb */ color: rgb(18, 13, 94);
/* oklch */ color: oklch(24.4% 0.134 273.0);
Tailwind
colors: {
  custom: {
    50: '#604e8d',
    500: '#120d5e',
    950: '#000000',
  },
}
SCSS
$custom: #120d5e;
$custom-light: #604e8d;
$custom-dark: #000000;
JSON
{
  "hex": "#120d5e",
  "rgb": {
    "r": 18,
    "g": 13,
    "b": 94
  },
  "hsl": {
    "h": 243.704,
    "s": 75.701,
    "l": 20.98
  },
  "oklch": {
    "l": 0.24441,
    "c": 0.13381,
    "h": 273
  },
  "luminance": 0.01225
}

Semantic roles & 50–950 ramp

primary
#120D5E
secondary
#92982F
accent
#F236E7
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#05020C
muted
#7A787D

Preview Lab

Preview with #120D5E

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

Preview Lab → · Contrast checker → · Palette generator →

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