#12104A#12104A

#12104A is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.5% C 0.103 H 275.7°. Best body text is #FFFFFF at 17.52:1 contrast (WCAG AA passes).

Color values

HEX#12104A
RGBrgb(18, 16, 74)
HSLhsl(242, 64%, 18%)
HSVhsv(242, 78%, 29%)
CMYKcmyk(75.7%, 78.4%, 0%, 71%)
CIE-LABlab(8.94, 22.51, -35.49)
CIE-LCHlch(8.94, 42.03, 302.38°)
OKLaboklab(22.45% 0.0102 -0.1026)
OKLCHoklch(22.45% 0.103 275.7)
XYZxyz(1.6704, 0.9934, 6.5810)
Luminance0.0099 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12104A #484A10
analogous
#102B4A #12104A #2F104A
triadic
#12104A #4A1210 #104A12
tetradic
#12104A #4A102B #484A10 #104A2F
square
#12104A #4A102B #484A10 #104A2F
split-complementary
#12104A #4A2F10 #2B4A10
monochromatic
#060519 #060519 #12104A #1E1B7C #2A26AF

Accessibility & contrast

On white

17.52
#12104A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#12104A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12104A
17.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12104A#FFFFFF#000000##FFFFFF
##12104A1.0017.521.2017.52
#FFFFFF17.521.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C4C
Deuteranopia (green-blind)
#001749
Tritanopia (blue-blind)
#00202B
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #12104a;
/* rgb */ color: rgb(18, 16, 74);
/* oklch */ color: oklch(22.5% 0.103 275.7);
Tailwind
colors: {
  custom: {
    50: '#5a4e7d',
    500: '#12104a',
    950: '#000000',
  },
}
SCSS
$custom: #12104a;
$custom-light: #5a4e7d;
$custom-dark: #000000;
JSON
{
  "hex": "#12104a",
  "rgb": {
    "r": 18,
    "g": 16,
    "b": 74
  },
  "hsl": {
    "h": 242.069,
    "s": 64.444,
    "l": 17.647
  },
  "oklch": {
    "l": 0.22451,
    "c": 0.10307,
    "h": 275.7
  },
  "luminance": 0.00994
}

Semantic roles & 50–950 ramp

primary
#12104A
secondary
#818432
accent
#E740E2
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04010A
muted
#79777C

Preview Lab

Preview with #12104A

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

Preview Lab → · Contrast checker → · Palette generator →

#12104A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva