#120F4F#120F4F

#120F4F is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.9% C 0.111 H 275.1°. Best body text is #FFFFFF at 17.40:1 contrast (WCAG AA passes).

Color values

HEX#120F4F
RGBrgb(18, 15, 79)
HSLhsl(243, 68%, 18%)
HSVhsv(243, 81%, 31%)
CMYKcmyk(77.2%, 81%, 0%, 69%)
CIE-LABlab(9.28, 25.09, -38.40)
CIE-LCHlch(9.28, 45.87, 303.16°)
OKLaboklab(22.87% 0.0099 -0.111)
OKLCHoklch(22.87% 0.111 275.1)
XYZxyz(1.8311, 1.0346, 7.4988)
Luminance0.0103 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120F4F #4C4F0F
analogous
#0F2C4F #120F4F #320F4F
triadic
#120F4F #4F120F #0F4F12
tetradic
#120F4F #4F0F2C #4C4F0F #0F4F32
square
#120F4F #4F0F2C #4C4F0F #0F4F32
split-complementary
#120F4F #4F320F #2C4F0F
monochromatic
#06051A #06051C #120F4F #1E1982 #2923B6

Accessibility & contrast

On white

17.40
#120F4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #120F4F
17.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120F4F#FFFFFF#000000##FFFFFF
##120F4F1.0017.401.2117.40
#FFFFFF17.401.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D51
Deuteranopia (green-blind)
#00174E
Tritanopia (blue-blind)
#00212E
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #120f4f;
/* rgb */ color: rgb(18, 15, 79);
/* oklch */ color: oklch(22.9% 0.111 275.1);
Tailwind
colors: {
  custom: {
    50: '#5b4e81',
    500: '#120f4f',
    950: '#000000',
  },
}
SCSS
$custom: #120f4f;
$custom-light: #5b4e81;
$custom-dark: #000000;
JSON
{
  "hex": "#120f4f",
  "rgb": {
    "r": 18,
    "g": 15,
    "b": 79
  },
  "hsl": {
    "h": 242.813,
    "s": 68.085,
    "l": 18.431
  },
  "oklch": {
    "l": 0.22866,
    "c": 0.11147,
    "h": 275.1
  },
  "luminance": 0.01035
}

Semantic roles & 50–950 ramp

primary
#120F4F
secondary
#858931
accent
#EB3DE3
background
#F5F4F8
surface
#E9E7EF
border
#C5C3CA
text
#04010A
muted
#79777C

Preview Lab

Preview with #120F4F

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

Preview Lab → · Contrast checker → · Palette generator →

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