#120F52#120F52

#120F52 is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 23.2% C 0.116 H 274.5°. Best body text is #FFFFFF at 17.27:1 contrast (WCAG AA passes).

Color values

HEX#120F52
RGBrgb(18, 15, 82)
HSLhsl(243, 69%, 19%)
HSVhsv(243, 82%, 32%)
CMYKcmyk(78%, 81.7%, 0%, 67.8%)
CIE-LABlab(9.64, 26.21, -39.87)
CIE-LCHlch(9.64, 47.72, 303.32°)
OKLaboklab(23.23% 0.0092 -0.1153)
OKLCHoklch(23.23% 0.116 274.5)
XYZxyz(1.9428, 1.0793, 8.0869)
Luminance0.0108 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120F52 #4F520F
analogous
#0F2E52 #120F52 #340F52
triadic
#120F52 #52120F #0F5212
tetradic
#120F52 #520F2E #4F520F #0F5234
square
#120F52 #520F2E #4F520F #0F5234
split-complementary
#120F52 #52340F #2E520F
monochromatic
#06051A #07061E #120F52 #1D1886 #2922B9

Accessibility & contrast

On white

17.27
#120F52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #120F52
17.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120F52#FFFFFF#000000##FFFFFF
##120F521.0017.271.2217.27
#FFFFFF17.271.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E54
Deuteranopia (green-blind)
#001851
Tritanopia (blue-blind)
#00232F
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #120f52;
/* rgb */ color: rgb(18, 15, 82);
/* oklch */ color: oklch(23.2% 0.116 274.5);
Tailwind
colors: {
  custom: {
    50: '#5c4e83',
    500: '#120f52',
    950: '#000000',
  },
}
SCSS
$custom: #120f52;
$custom-light: #5c4e83;
$custom-dark: #000000;
JSON
{
  "hex": "#120f52",
  "rgb": {
    "r": 18,
    "g": 15,
    "b": 82
  },
  "hsl": {
    "h": 242.687,
    "s": 69.072,
    "l": 19.02
  },
  "oklch": {
    "l": 0.23227,
    "c": 0.11567,
    "h": 274.5
  },
  "luminance": 0.01079
}

Semantic roles & 50–950 ramp

primary
#120F52
secondary
#888C31
accent
#EC3CE4
background
#F5F4F8
surface
#E9E7EF
border
#C5C3CA
text
#05010B
muted
#79777C

Preview Lab

Preview with #120F52

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

Preview Lab → · Contrast checker → · Palette generator →

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