#12104B#12104B

#12104B is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.6% C 0.105 H 275.5°. Best body text is #FFFFFF at 17.48:1 contrast (WCAG AA passes).

Color values

HEX#12104B
RGBrgb(18, 16, 75)
HSLhsl(242, 65%, 18%)
HSVhsv(242, 79%, 29%)
CMYKcmyk(76%, 78.7%, 0%, 70.6%)
CIE-LABlab(9.05, 22.90, -36.00)
CIE-LCHlch(9.05, 42.67, 302.45°)
OKLaboklab(22.57% 0.01 -0.104)
OKLCHoklch(22.57% 0.105 275.5)
XYZxyz(1.7043, 1.0070, 6.7598)
Luminance0.0101 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12104B #494B10
analogous
#102B4B #12104B #2F104B
triadic
#12104B #4B1210 #104B12
tetradic
#12104B #4B102B #494B10 #104B2F
square
#12104B #4B102B #494B10 #104B2F
split-complementary
#12104B #4B2F10 #2B4B10
monochromatic
#060519 #060519 #12104B #1E1B7D #2A26B0

Accessibility & contrast

On white

17.48
#12104B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12104B
17.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12104B#FFFFFF#000000##FFFFFF
##12104B1.0017.481.2017.48
#FFFFFF17.481.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C4D
Deuteranopia (green-blind)
#00174A
Tritanopia (blue-blind)
#00202C
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #12104b;
/* rgb */ color: rgb(18, 16, 75);
/* oklch */ color: oklch(22.6% 0.105 275.5);
Tailwind
colors: {
  custom: {
    50: '#5a4e7e',
    500: '#12104b',
    950: '#000000',
  },
}
SCSS
$custom: #12104b;
$custom-light: #5a4e7e;
$custom-dark: #000000;
JSON
{
  "hex": "#12104b",
  "rgb": {
    "r": 18,
    "g": 16,
    "b": 75
  },
  "hsl": {
    "h": 242.034,
    "s": 64.835,
    "l": 17.843
  },
  "oklch": {
    "l": 0.22566,
    "c": 0.10452,
    "h": 275.5
  },
  "luminance": 0.01007
}

Semantic roles & 50–950 ramp

primary
#12104B
secondary
#828532
accent
#E840E2
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04010A
muted
#79777C

Preview Lab

Preview with #12104B

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

Preview Lab → · Contrast checker → · Palette generator →

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