#120D57#120D57

#120D57 is a very dark, vivid blue. Relative luminance 0.011; OKLCH L 23.5% C 0.125 H 274.1°. Best body text is #FFFFFF at 17.20:1 contrast (WCAG AA passes).

Color values

HEX#120D57
RGBrgb(18, 13, 87)
HSLhsl(244, 74%, 20%)
HSVhsv(244, 85%, 34%)
CMYKcmyk(79.3%, 85.1%, 0%, 65.9%)
CIE-LABlab(9.83, 29.25, -42.96)
CIE-LCHlch(9.83, 51.97, 304.25°)
OKLaboklab(23.55% 0.0089 -0.1243)
OKLCHoklch(23.55% 0.125 274.1)
XYZxyz(2.1131, 1.1044, 9.1168)
Luminance0.0111 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120D57 #52570D
analogous
#0D2D57 #120D57 #370D57
triadic
#120D57 #57120D #0D5712
tetradic
#120D57 #570D2D #52570D #0D5737
square
#120D57 #570D2D #52570D #0D5737
split-complementary
#120D57 #57370D #2D570D
monochromatic
#06041B #070522 #120D57 #1D158C #281DC1

Accessibility & contrast

On white

17.20
#120D57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #120D57
17.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120D57#FFFFFF#000000##FFFFFF
##120D571.0017.201.2217.20
#FFFFFF17.201.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.201.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #120d57;
/* rgb */ color: rgb(18, 13, 87);
/* oklch */ color: oklch(23.5% 0.125 274.1);
Tailwind
colors: {
  custom: {
    50: '#5e4d87',
    500: '#120d57',
    950: '#000000',
  },
}
SCSS
$custom: #120d57;
$custom-light: #5e4d87;
$custom-dark: #000000;
JSON
{
  "hex": "#120d57",
  "rgb": {
    "r": 18,
    "g": 13,
    "b": 87
  },
  "hsl": {
    "h": 244.054,
    "s": 74,
    "l": 19.608
  },
  "oklch": {
    "l": 0.23549,
    "c": 0.12458,
    "h": 274.1
  },
  "luminance": 0.01105
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #120D57

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

Preview Lab → · Contrast checker → · Palette generator →

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