#120A4E#120A4E

#120A4E is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 22.0% C 0.115 H 276.4°. Best body text is #FFFFFF at 17.81:1 contrast (WCAG AA passes).

Color values

HEX#120A4E
RGBrgb(18, 10, 78)
HSLhsl(247, 77%, 17%)
HSVhsv(247, 87%, 31%)
CMYKcmyk(76.9%, 87.2%, 0%, 69.4%)
CIE-LABlab(8.09, 27.76, -39.67)
CIE-LCHlch(8.09, 48.42, 304.98°)
OKLaboklab(22% 0.0129 -0.1147)
OKLCHoklch(22% 0.115 276.4)
XYZxyz(1.7327, 0.8956, 7.2878)
Luminance0.0090 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120A4E #464E0A
analogous
#0A244E #120A4E #340A4E
triadic
#120A4E #4E120A #0A4E12
tetradic
#120A4E #4E0A24 #464E0A #0A4E34
square
#120A4E #4E0A24 #464E0A #0A4E34
split-complementary
#120A4E #4E340A #244E0A
monochromatic
#06031B #06031B #120A4E #1F1184 #2B18BA

Accessibility & contrast

On white

17.81
#120A4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#120A4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #120A4E
17.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120A4E#FFFFFF#000000##FFFFFF
##120A4E1.0017.811.1817.81
#FFFFFF17.811.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A50
Deuteranopia (green-blind)
#00154D
Tritanopia (blue-blind)
#001F2C
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #120a4e;
/* rgb */ color: rgb(18, 10, 78);
/* oklch */ color: oklch(22.0% 0.115 276.4);
Tailwind
colors: {
  custom: {
    50: '#5b4b80',
    500: '#120a4e',
    950: '#000000',
  },
}
SCSS
$custom: #120a4e;
$custom-light: #5b4b80;
$custom-dark: #000000;
JSON
{
  "hex": "#120a4e",
  "rgb": {
    "r": 18,
    "g": 10,
    "b": 78
  },
  "hsl": {
    "h": 247.059,
    "s": 77.273,
    "l": 17.255
  },
  "oklch": {
    "l": 0.21996,
    "c": 0.11539,
    "h": 276.4
  },
  "luminance": 0.00896
}

Semantic roles & 50–950 ramp

primary
#120A4E
secondary
#7F8B29
accent
#F434DD
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#05010A
muted
#79777C

Preview Lab

Preview with #120A4E

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

Preview Lab → · Contrast checker → · Palette generator →

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