#12182A#12182A

#12182A is a very dark, muted blue. Relative luminance 0.009; OKLCH L 21.3% C 0.037 H 269.1°. Best body text is #FFFFFF at 17.65:1 contrast (WCAG AA passes).

Color values

HEX#12182A
RGBrgb(18, 24, 42)
HSLhsl(225, 40%, 12%)
HSVhsv(225, 57%, 16%)
CMYKcmyk(57.1%, 42.9%, 0%, 83.5%)
CIE-LABlab(8.56, 3.48, -13.11)
CIE-LCHlch(8.56, 13.56, 284.87°)
OKLaboklab(21.29% -0.0006 -0.0369)
OKLCHoklch(21.29% 0.037 269.1)
XYZxyz(0.9939, 0.9490, 2.3208)
Luminance0.0095 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12182A #2A2412
analogous
#12242A #12182A #18122A
triadic
#12182A #2A1218 #182A12
tetradic
#12182A #2A1224 #2A2412 #122A18
square
#12182A #2A1224 #2A2412 #122A18
split-complementary
#12182A #2A1812 #242A12
monochromatic
#090C15 #090C15 #12182A #243055 #374980

Accessibility & contrast

On white

17.65
#12182A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#12182A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12182A
17.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12182A#FFFFFF#000000##FFFFFF
##12182A1.0017.651.1917.65
#FFFFFF17.651.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#111A2B
Deuteranopia (green-blind)
#0F182A
Tritanopia (blue-blind)
#091C1F
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #12182a;
/* rgb */ color: rgb(18, 24, 42);
/* oklch */ color: oklch(21.3% 0.037 269.1);
Tailwind
colors: {
  custom: {
    50: '#515463',
    500: '#12182a',
    950: '#000000',
  },
}
SCSS
$custom: #12182a;
$custom-light: #515463;
$custom-dark: #000000;
JSON
{
  "hex": "#12182a",
  "rgb": {
    "r": 18,
    "g": 24,
    "b": 42
  },
  "hsl": {
    "h": 225,
    "s": 40,
    "l": 11.765
  },
  "oklch": {
    "l": 0.21293,
    "c": 0.03686,
    "h": 269.1
  },
  "luminance": 0.00949
}

Semantic roles & 50–950 ramp

primary
#12182A
secondary
#615737
accent
#B258D0
background
#F4F4F5
surface
#E7E7EA
border
#C3C3C6
text
#020205
muted
#787879

Preview Lab

Preview with #12182A

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

Preview Lab → · Contrast checker → · Palette generator →

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