#120D58#120D58

#120D58 is a very dark, vivid blue. Relative luminance 0.011; OKLCH L 23.7% C 0.126 H 273.9°. Best body text is #FFFFFF at 17.15:1 contrast (WCAG AA passes).

Color values

HEX#120D58
RGBrgb(18, 13, 88)
HSLhsl(244, 74%, 20%)
HSVhsv(244, 85%, 35%)
CMYKcmyk(79.5%, 85.2%, 0%, 65.5%)
CIE-LABlab(9.96, 29.60, -43.43)
CIE-LCHlch(9.96, 52.56, 304.28°)
OKLaboklab(23.67% 0.0086 -0.1256)
OKLCHoklch(23.67% 0.126 273.9)
XYZxyz(2.1542, 1.1208, 9.3334)
Luminance0.0112 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120D58 #53580D
analogous
#0D2E58 #120D58 #380D58
triadic
#120D58 #58120D #0D5812
tetradic
#120D58 #580D2E #53580D #0D5838
square
#120D58 #580D2E #53580D #0D5838
split-complementary
#120D58 #58380D #2E580D
monochromatic
#05041B #070523 #120D58 #1D158D #281DC3

Accessibility & contrast

On white

17.15
#120D58 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#120D58 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #120D58
17.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120D58#FFFFFF#000000##FFFFFF
##120D581.0017.151.2217.15
#FFFFFF17.151.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F5A
Deuteranopia (green-blind)
#001857
Tritanopia (blue-blind)
#002432
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #120d58;
/* rgb */ color: rgb(18, 13, 88);
/* oklch */ color: oklch(23.7% 0.126 273.9);
Tailwind
colors: {
  custom: {
    50: '#5e4d88',
    500: '#120d58',
    950: '#000000',
  },
}
SCSS
$custom: #120d58;
$custom-light: #5e4d88;
$custom-dark: #000000;
JSON
{
  "hex": "#120d58",
  "rgb": {
    "r": 18,
    "g": 13,
    "b": 88
  },
  "hsl": {
    "h": 244,
    "s": 74.257,
    "l": 19.804
  },
  "oklch": {
    "l": 0.23675,
    "c": 0.12592,
    "h": 273.9
  },
  "luminance": 0.01121
}

Semantic roles & 50–950 ramp

primary
#120D58
secondary
#8C932E
accent
#F137E4
background
#F5F4F8
surface
#EAE7F0
border
#C6C3CB
text
#05010B
muted
#79777C

Preview Lab

Preview with #120D58

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

Preview Lab → · Contrast checker → · Palette generator →

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