#120846#120846

#120846 is a very dark, moderate blue. Relative luminance 0.007; OKLCH L 20.7% C 0.107 H 279.0°. Best body text is #FFFFFF at 18.28:1 contrast (WCAG AA passes).

Color values

HEX#120846
RGBrgb(18, 8, 70)
HSLhsl(250, 79%, 15%)
HSVhsv(250, 89%, 27%)
CMYKcmyk(74.3%, 88.6%, 0%, 72.5%)
CIE-LABlab(6.72, 25.82, -36.34)
CIE-LCHlch(6.72, 44.57, 305.39°)
OKLaboklab(20.69% 0.0167 -0.1053)
OKLCHoklch(20.69% 0.107 279)
XYZxyz(1.4414, 0.7443, 5.8609)
Luminance0.0074 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120846 #3C4608
analogous
#081D46 #120846 #310846
triadic
#120846 #461208 #084612
tetradic
#120846 #46081D #3C4608 #084631
square
#120846 #46081D #3C4608 #084631
split-complementary
#120846 #463108 #1D4608
monochromatic
#07031B #07031B #120846 #200E7D #2E15B4

Accessibility & contrast

On white

18.28
#120846 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#120846 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #120846
18.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120846#FFFFFF#000000##FFFFFF
##1208461.0018.281.1518.28
#FFFFFF18.281.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001748
Deuteranopia (green-blind)
#001245
Tritanopia (blue-blind)
#001B27
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #120846;
/* rgb */ color: rgb(18, 8, 70);
/* oklch */ color: oklch(20.7% 0.107 279.0);
Tailwind
colors: {
  custom: {
    50: '#59497a',
    500: '#120846',
    950: '#000000',
  },
}
SCSS
$custom: #120846;
$custom-light: #59497a;
$custom-dark: #000000;
JSON
{
  "hex": "#120846",
  "rgb": {
    "r": 18,
    "g": 8,
    "b": 70
  },
  "hsl": {
    "h": 249.677,
    "s": 79.487,
    "l": 15.294
  },
  "oklch": {
    "l": 0.20692,
    "c": 0.10662,
    "h": 279
  },
  "luminance": 0.00744
}

Semantic roles & 50–950 ramp

primary
#120846
secondary
#758426
accent
#F632D6
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#040109
muted
#79777B

Preview Lab

Preview with #120846

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

Preview Lab → · Contrast checker → · Palette generator →

#120846 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva