#12121A#12121A

#12121A is a very dark, near-neutral blue. Relative luminance 0.006; OKLCH L 18.6% C 0.016 H 284.7°. Best body text is #FFFFFF at 18.63:1 contrast (WCAG AA passes).

Color values

HEX#12121A
RGBrgb(18, 18, 26)
HSLhsl(240, 18%, 9%)
HSVhsv(240, 31%, 10%)
CMYKcmyk(30.8%, 30.8%, 0%, 89.8%)
CIE-LABlab(5.74, 1.96, -5.29)
CIE-LCHlch(5.74, 5.64, 290.35°)
OKLaboklab(18.61% 0.0041 -0.0157)
OKLCHoklch(18.61% 0.016 284.7)
XYZxyz(0.6522, 0.6358, 1.0654)
Luminance0.0064 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12121A #1A1A12
analogous
#12161A #12121A #16121A
triadic
#12121A #1A1212 #121A12
tetradic
#12121A #1A1216 #1A1A12 #121A16
square
#12121A #1A1216 #1A1A12 #121A16
split-complementary
#12121A #1A1612 #161A12
monochromatic
#0D0D12 #0D0D12 #12121A #2B2B3E #444462

Accessibility & contrast

On white

18.63
#12121A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#12121A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12121A
18.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12121A#FFFFFF#000000##FFFFFF
##12121A1.0018.631.1318.63
#FFFFFF18.631.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#10131A
Deuteranopia (green-blind)
#10121A
Tritanopia (blue-blind)
#101315
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #12121a;
/* rgb */ color: rgb(18, 18, 26);
/* oklch */ color: oklch(18.6% 0.016 284.7);
Tailwind
colors: {
  custom: {
    50: '#4f5056',
    500: '#12121a',
    950: '#000000',
  },
}
SCSS
$custom: #12121a;
$custom-light: #4f5056;
$custom-dark: #000000;
JSON
{
  "hex": "#12121a",
  "rgb": {
    "r": 18,
    "g": 18,
    "b": 26
  },
  "hsl": {
    "h": 240,
    "s": 18.182,
    "l": 8.627
  },
  "oklch": {
    "l": 0.18614,
    "c": 0.01622,
    "h": 284.7
  },
  "luminance": 0.00636
}

Semantic roles & 50–950 ramp

primary
#12121A
secondary
#4D4D3B
accent
#BB6DBB
background
#F4F4F5
surface
#E7E7E9
border
#C3C3C5
text
#020203
muted
#787878

Preview Lab

Preview with #12121A

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

Preview Lab → · Contrast checker → · Palette generator →

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