#12104C#12104C

#12104C is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.7% C 0.106 H 275.3°. Best body text is #FFFFFF at 17.44:1 contrast (WCAG AA passes).

Color values

HEX#12104C
RGBrgb(18, 16, 76)
HSLhsl(242, 65%, 18%)
HSVhsv(242, 79%, 30%)
CMYKcmyk(76.3%, 78.9%, 0%, 70.2%)
CIE-LABlab(9.16, 23.28, -36.51)
CIE-LCHlch(9.16, 43.30, 302.53°)
OKLaboklab(22.68% 0.0098 -0.1055)
OKLCHoklch(22.68% 0.106 275.3)
XYZxyz(1.7388, 1.0208, 6.9415)
Luminance0.0102 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12104C #4A4C10
analogous
#102C4C #12104C #30104C
triadic
#12104C #4C1210 #104C12
tetradic
#12104C #4C102C #4A4C10 #104C30
square
#12104C #4C102C #4A4C10 #104C30
split-complementary
#12104C #4C3010 #2C4C10
monochromatic
#060519 #060519 #12104C #1E1B7F #2A25B1

Accessibility & contrast

On white

17.44
#12104C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12104C
17.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12104C#FFFFFF#000000##FFFFFF
##12104C1.0017.441.2017.44
#FFFFFF17.441.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C4E
Deuteranopia (green-blind)
#00174B
Tritanopia (blue-blind)
#00212C
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #12104c;
/* rgb */ color: rgb(18, 16, 76);
/* oklch */ color: oklch(22.7% 0.106 275.3);
Tailwind
colors: {
  custom: {
    50: '#5a4e7f',
    500: '#12104c',
    950: '#000000',
  },
}
SCSS
$custom: #12104c;
$custom-light: #5a4e7f;
$custom-dark: #000000;
JSON
{
  "hex": "#12104c",
  "rgb": {
    "r": 18,
    "g": 16,
    "b": 76
  },
  "hsl": {
    "h": 242,
    "s": 65.217,
    "l": 18.039
  },
  "oklch": {
    "l": 0.22681,
    "c": 0.10598,
    "h": 275.3
  },
  "luminance": 0.01021
}

Semantic roles & 50–950 ramp

primary
#12104C
secondary
#838632
accent
#E840E3
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04020A
muted
#79787C

Preview Lab

Preview with #12104C

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

Preview Lab → · Contrast checker → · Palette generator →

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