#120847#120847

#120847 is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 20.8% C 0.108 H 278.7°. Best body text is #FFFFFF at 18.24:1 contrast (WCAG AA passes).

Color values

HEX#120847
RGBrgb(18, 8, 71)
HSLhsl(250, 80%, 15%)
HSVhsv(250, 89%, 28%)
CMYKcmyk(74.6%, 88.7%, 0%, 72.2%)
CIE-LABlab(6.84, 26.22, -36.85)
CIE-LCHlch(6.84, 45.23, 305.44°)
OKLaboklab(20.82% 0.0164 -0.1067)
OKLCHoklch(20.82% 0.108 278.7)
XYZxyz(1.4733, 0.7571, 6.0285)
Luminance0.0076 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120847 #3D4708
analogous
#081D47 #120847 #310847
triadic
#120847 #471208 #084712
tetradic
#120847 #47081D #3D4708 #084731
square
#120847 #47081D #3D4708 #084731
split-complementary
#120847 #473108 #1D4708
monochromatic
#07031C #07031C #120847 #200E7E #2E14B5

Accessibility & contrast

On white

18.24
#120847 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #120847
18.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120847#FFFFFF#000000##FFFFFF
##1208471.0018.241.1518.24
#FFFFFF18.241.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001849
Deuteranopia (green-blind)
#001346
Tritanopia (blue-blind)
#001B28
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #120847;
/* rgb */ color: rgb(18, 8, 71);
/* oklch */ color: oklch(20.8% 0.108 278.7);
Tailwind
colors: {
  custom: {
    50: '#5a497b',
    500: '#120847',
    950: '#000000',
  },
}
SCSS
$custom: #120847;
$custom-light: #5a497b;
$custom-dark: #000000;
JSON
{
  "hex": "#120847",
  "rgb": {
    "r": 18,
    "g": 8,
    "b": 71
  },
  "hsl": {
    "h": 249.524,
    "s": 79.747,
    "l": 15.49
  },
  "oklch": {
    "l": 0.20819,
    "c": 0.10798,
    "h": 278.7
  },
  "luminance": 0.00757
}

Semantic roles & 50–950 ramp

primary
#120847
secondary
#768526
accent
#F632D7
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#040109
muted
#79777B

Preview Lab

Preview with #120847

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

Preview Lab → · Contrast checker → · Palette generator →

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