#120F57#120F57

#120F57 is a very dark, vivid blue. Relative luminance 0.012; OKLCH L 23.8% C 0.123 H 273.7°. Best body text is #FFFFFF at 17.05:1 contrast (WCAG AA passes).

Color values

HEX#120F57
RGBrgb(18, 15, 87)
HSLhsl(243, 71%, 20%)
HSVhsv(243, 83%, 34%)
CMYKcmyk(79.3%, 82.8%, 0%, 65.9%)
CIE-LABlab(10.24, 28.06, -42.28)
CIE-LCHlch(10.24, 50.74, 303.58°)
OKLaboklab(23.84% 0.008 -0.1223)
OKLCHoklch(23.84% 0.123 273.7)
XYZxyz(2.1400, 1.1581, 9.1257)
Luminance0.0116 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120F57 #54570F
analogous
#0F3057 #120F57 #360F57
triadic
#120F57 #57120F #0F5712
tetradic
#120F57 #570F30 #54570F #0F5736
square
#120F57 #570F30 #54570F #0F5736
split-complementary
#120F57 #57360F #30570F
monochromatic
#05051A #070623 #120F57 #1D188B #2821BF

Accessibility & contrast

On white

17.05
#120F57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#120F57 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #120F57
17.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120F57#FFFFFF#000000##FFFFFF
##120F571.0017.051.2317.05
#FFFFFF17.051.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F59
Deuteranopia (green-blind)
#001956
Tritanopia (blue-blind)
#002432
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #120f57;
/* rgb */ color: rgb(18, 15, 87);
/* oklch */ color: oklch(23.8% 0.123 273.7);
Tailwind
colors: {
  custom: {
    50: '#5d4f87',
    500: '#120f57',
    950: '#000000',
  },
}
SCSS
$custom: #120f57;
$custom-light: #5d4f87;
$custom-dark: #000000;
JSON
{
  "hex": "#120f57",
  "rgb": {
    "r": 18,
    "g": 15,
    "b": 87
  },
  "hsl": {
    "h": 242.5,
    "s": 70.588,
    "l": 20
  },
  "oklch": {
    "l": 0.23838,
    "c": 0.12256,
    "h": 273.7
  },
  "luminance": 0.01158
}

Semantic roles & 50–950 ramp

primary
#120F57
secondary
#8D9131
accent
#ED3AE6
background
#F5F4F8
surface
#EAE7F0
border
#C6C3CB
text
#05020B
muted
#79787C

Preview Lab

Preview with #120F57

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

Preview Lab → · Contrast checker → · Palette generator →

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