#120F51#120F51

#120F51 is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 23.1% C 0.114 H 274.7°. Best body text is #FFFFFF at 17.32:1 contrast (WCAG AA passes).

Color values

HEX#120F51
RGBrgb(18, 15, 81)
HSLhsl(243, 69%, 19%)
HSVhsv(243, 81%, 32%)
CMYKcmyk(77.8%, 81.5%, 0%, 68.2%)
CIE-LABlab(9.51, 25.84, -39.38)
CIE-LCHlch(9.51, 47.10, 303.27°)
OKLaboklab(23.11% 0.0094 -0.1139)
OKLCHoklch(23.11% 0.114 274.7)
XYZxyz(1.9050, 1.0641, 7.8880)
Luminance0.0106 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120F51 #4E510F
analogous
#0F2D51 #120F51 #330F51
triadic
#120F51 #51120F #0F5112
tetradic
#120F51 #510F2D #4E510F #0F5133
square
#120F51 #510F2D #4E510F #0F5133
split-complementary
#120F51 #51330F #2D510F
monochromatic
#06051A #07051D #120F51 #1D1985 #2922B8

Accessibility & contrast

On white

17.32
#120F51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#120F51 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #120F51
17.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120F51#FFFFFF#000000##FFFFFF
##120F511.0017.321.2117.32
#FFFFFF17.321.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D53
Deuteranopia (green-blind)
#001750
Tritanopia (blue-blind)
#00222F
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #120f51;
/* rgb */ color: rgb(18, 15, 81);
/* oklch */ color: oklch(23.1% 0.114 274.7);
Tailwind
colors: {
  custom: {
    50: '#5c4e83',
    500: '#120f51',
    950: '#000000',
  },
}
SCSS
$custom: #120f51;
$custom-light: #5c4e83;
$custom-dark: #000000;
JSON
{
  "hex": "#120f51",
  "rgb": {
    "r": 18,
    "g": 15,
    "b": 81
  },
  "hsl": {
    "h": 242.727,
    "s": 68.75,
    "l": 18.824
  },
  "oklch": {
    "l": 0.23106,
    "c": 0.11428,
    "h": 274.7
  },
  "luminance": 0.01064
}

Semantic roles & 50–950 ramp

primary
#120F51
secondary
#878B31
accent
#EC3CE4
background
#F5F4F8
surface
#E9E7EF
border
#C5C3CA
text
#05010B
muted
#79777C

Preview Lab

Preview with #120F51

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

Preview Lab → · Contrast checker → · Palette generator →

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