#120946#120946

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

Color values

HEX#120946
RGBrgb(18, 9, 70)
HSLhsl(249, 77%, 15%)
HSVhsv(249, 87%, 27%)
CMYKcmyk(74.3%, 87.1%, 0%, 72.5%)
CIE-LABlab(6.92, 25.28, -36.01)
CIE-LCHlch(6.92, 44.00, 305.07°)
OKLaboklab(20.84% 0.016 -0.1043)
OKLCHoklch(20.84% 0.105 278.7)
XYZxyz(1.4523, 0.7660, 5.8645)
Luminance0.0077 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#120946 #3D4609
analogous
#091F46 #120946 #300946
triadic
#120946 #461209 #094612
tetradic
#120946 #46091F #3D4609 #094630
square
#120946 #46091F #3D4609 #094630
split-complementary
#120946 #463009 #1F4609
monochromatic
#07031B #07031B #120946 #20107C #2E17B2

Accessibility & contrast

On white

18.21
#120946 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #120946
18.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##120946#FFFFFF#000000##FFFFFF
##1209461.0018.211.1518.21
#FFFFFF18.211.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.211.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #120946;
/* rgb */ color: rgb(18, 9, 70);
/* oklch */ color: oklch(20.8% 0.105 278.7);
Tailwind
colors: {
  custom: {
    50: '#594a7a',
    500: '#120946',
    950: '#000000',
  },
}
SCSS
$custom: #120946;
$custom-light: #594a7a;
$custom-dark: #000000;
JSON
{
  "hex": "#120946",
  "rgb": {
    "r": 18,
    "g": 9,
    "b": 70
  },
  "hsl": {
    "h": 248.852,
    "s": 77.215,
    "l": 15.49
  },
  "oklch": {
    "l": 0.20844,
    "c": 0.10549,
    "h": 278.7
  },
  "luminance": 0.00766
}

Semantic roles & 50–950 ramp

primary
#120946
secondary
#768427
accent
#F434D7
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#040109
muted
#79777B

Preview Lab

Preview with #120946

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

Preview Lab → · Contrast checker → · Palette generator →

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