#120849#120849

#120849 is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 21.1% C 0.111 H 278.1°. Best body text is #FFFFFF at 18.16:1 contrast (WCAG AA passes).

Color values

HEX#120849
RGBrgb(18, 8, 73)
HSLhsl(249, 80%, 16%)
HSVhsv(249, 89%, 29%)
CMYKcmyk(75.3%, 89%, 0%, 71.4%)
CIE-LABlab(7.07, 27.02, -37.87)
CIE-LCHlch(7.07, 46.52, 305.51°)
OKLaboklab(21.08% 0.0157 -0.1096)
OKLCHoklch(21.08% 0.111 278.1)
XYZxyz(1.5385, 0.7832, 6.3721)
Luminance0.0078 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120849 #3F4908
analogous
#081E49 #120849 #320849
triadic
#120849 #491208 #084912
tetradic
#120849 #49081E #3F4908 #084932
square
#120849 #49081E #3F4908 #084932
split-complementary
#120849 #493208 #1E4908
monochromatic
#07031C #07031C #120849 #200E80 #2D14B7

Accessibility & contrast

On white

18.16
#120849 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#120849 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #120849
18.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120849#FFFFFF#000000##FFFFFF
##1208491.0018.161.1618.16
#FFFFFF18.161.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00184B
Deuteranopia (green-blind)
#001348
Tritanopia (blue-blind)
#001C29
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #120849;
/* rgb */ color: rgb(18, 8, 73);
/* oklch */ color: oklch(21.1% 0.111 278.1);
Tailwind
colors: {
  custom: {
    50: '#5a497d',
    500: '#120849',
    950: '#000000',
  },
}
SCSS
$custom: #120849;
$custom-light: #5a497d;
$custom-dark: #000000;
JSON
{
  "hex": "#120849",
  "rgb": {
    "r": 18,
    "g": 8,
    "b": 73
  },
  "hsl": {
    "h": 249.231,
    "s": 80.247,
    "l": 15.882
  },
  "oklch": {
    "l": 0.21075,
    "c": 0.11069,
    "h": 278.1
  },
  "luminance": 0.00783
}

Semantic roles & 50–950 ramp

primary
#120849
secondary
#788726
accent
#F731D8
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04010A
muted
#79777C

Preview Lab

Preview with #120849

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

Preview Lab → · Contrast checker → · Palette generator →

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