#120F4D#120F4D

#120F4D is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.6% C 0.109 H 275.4°. Best body text is #FFFFFF at 17.48:1 contrast (WCAG AA passes).

Color values

HEX#120F4D
RGBrgb(18, 15, 77)
HSLhsl(243, 67%, 18%)
HSVhsv(243, 81%, 30%)
CMYKcmyk(76.6%, 80.5%, 0%, 69.8%)
CIE-LABlab(9.04, 24.33, -37.41)
CIE-LCHlch(9.04, 44.62, 303.04°)
OKLaboklab(22.63% 0.0103 -0.1081)
OKLCHoklch(22.63% 0.109 275.4)
XYZxyz(1.7594, 1.0059, 7.1212)
Luminance0.0101 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120F4D #4A4D0F
analogous
#0F2B4D #120F4D #310F4D
triadic
#120F4D #4D120F #0F4D12
tetradic
#120F4D #4D0F2B #4A4D0F #0F4D31
square
#120F4D #4D0F2B #4A4D0F #0F4D31
split-complementary
#120F4D #4D310F #2B4D0F
monochromatic
#06051A #06051A #120F4D #1E1980 #2A23B3

Accessibility & contrast

On white

17.48
#120F4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#120F4D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #120F4D
17.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120F4D#FFFFFF#000000##FFFFFF
##120F4D1.0017.481.2017.48
#FFFFFF17.481.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C4F
Deuteranopia (green-blind)
#00174C
Tritanopia (blue-blind)
#00212D
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #120f4d;
/* rgb */ color: rgb(18, 15, 77);
/* oklch */ color: oklch(22.6% 0.109 275.4);
Tailwind
colors: {
  custom: {
    50: '#5b4e80',
    500: '#120f4d',
    950: '#000000',
  },
}
SCSS
$custom: #120f4d;
$custom-light: #5b4e80;
$custom-dark: #000000;
JSON
{
  "hex": "#120f4d",
  "rgb": {
    "r": 18,
    "g": 15,
    "b": 77
  },
  "hsl": {
    "h": 242.903,
    "s": 67.391,
    "l": 18.039
  },
  "oklch": {
    "l": 0.22628,
    "c": 0.10862,
    "h": 275.4
  },
  "luminance": 0.01006
}

Semantic roles & 50–950 ramp

primary
#120F4D
secondary
#838731
accent
#EA3EE2
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04010A
muted
#79777C

Preview Lab

Preview with #120F4D

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

Preview Lab → · Contrast checker → · Palette generator →

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