#120F4B#120F4B

#120F4B is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.4% C 0.106 H 275.8°. Best body text is #FFFFFF at 17.56:1 contrast (WCAG AA passes).

Color values

HEX#120F4B
RGBrgb(18, 15, 75)
HSLhsl(243, 67%, 18%)
HSVhsv(243, 80%, 29%)
CMYKcmyk(76%, 80%, 0%, 70.6%)
CIE-LABlab(8.81, 23.57, -36.40)
CIE-LCHlch(8.81, 43.37, 302.92°)
OKLaboklab(22.39% 0.0107 -0.1052)
OKLCHoklch(22.39% 0.106 275.8)
XYZxyz(1.6899, 0.9781, 6.7550)
Luminance0.0098 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120F4B #484B0F
analogous
#0F2A4B #120F4B #300F4B
triadic
#120F4B #4B120F #0F4B12
tetradic
#120F4B #4B0F2A #484B0F #0F4B30
square
#120F4B #4B0F2A #484B0F #0F4B30
split-complementary
#120F4B #4B300F #2A4B0F
monochromatic
#06051A #06051A #120F4B #1E197E #2A23B1

Accessibility & contrast

On white

17.56
#120F4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #120F4B
17.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120F4B#FFFFFF#000000##FFFFFF
##120F4B1.0017.561.2017.56
#FFFFFF17.561.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C4D
Deuteranopia (green-blind)
#00164A
Tritanopia (blue-blind)
#00202C
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #120f4b;
/* rgb */ color: rgb(18, 15, 75);
/* oklch */ color: oklch(22.4% 0.106 275.8);
Tailwind
colors: {
  custom: {
    50: '#5a4e7e',
    500: '#120f4b',
    950: '#000000',
  },
}
SCSS
$custom: #120f4b;
$custom-light: #5a4e7e;
$custom-dark: #000000;
JSON
{
  "hex": "#120f4b",
  "rgb": {
    "r": 18,
    "g": 15,
    "b": 75
  },
  "hsl": {
    "h": 243,
    "s": 66.667,
    "l": 17.647
  },
  "oklch": {
    "l": 0.22393,
    "c": 0.10575,
    "h": 275.8
  },
  "luminance": 0.00978
}

Semantic roles & 50–950 ramp

primary
#120F4B
secondary
#818530
accent
#EA3EE1
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04010A
muted
#79777C

Preview Lab

Preview with #120F4B

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

Preview Lab → · Contrast checker → · Palette generator →

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