#12182B#12182B

#12182B is a very dark, muted blue. Relative luminance 0.010; OKLCH L 21.4% C 0.039 H 269.6°. Best body text is #FFFFFF at 17.63:1 contrast (WCAG AA passes).

Color values

HEX#12182B
RGBrgb(18, 24, 43)
HSLhsl(226, 41%, 12%)
HSVhsv(226, 58%, 17%)
CMYKcmyk(58.1%, 44.2%, 0%, 83.1%)
CIE-LABlab(8.62, 3.87, -13.75)
CIE-LCHlch(8.62, 14.29, 285.73°)
OKLaboklab(21.36% -0.0002 -0.0387)
OKLCHoklch(21.36% 0.039 269.6)
XYZxyz(1.0120, 0.9562, 2.4163)
Luminance0.0096 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12182B #2B2512
analogous
#12252B #12182B #19122B
triadic
#12182B #2B1218 #182B12
tetradic
#12182B #2B1225 #2B2512 #122B19
square
#12182B #2B1225 #2B2512 #122B19
split-complementary
#12182B #2B1912 #252B12
monochromatic
#090C16 #090C16 #12182B #243056 #364881

Accessibility & contrast

On white

17.63
#12182B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12182B
17.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12182B#FFFFFF#000000##FFFFFF
##12182B1.0017.631.1917.63
#FFFFFF17.631.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#111A2C
Deuteranopia (green-blind)
#0E182B
Tritanopia (blue-blind)
#081C1F
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #12182b;
/* rgb */ color: rgb(18, 24, 43);
/* oklch */ color: oklch(21.4% 0.039 269.6);
Tailwind
colors: {
  custom: {
    50: '#515464',
    500: '#12182b',
    950: '#000000',
  },
}
SCSS
$custom: #12182b;
$custom-light: #515464;
$custom-dark: #000000;
JSON
{
  "hex": "#12182b",
  "rgb": {
    "r": 18,
    "g": 24,
    "b": 43
  },
  "hsl": {
    "h": 225.6,
    "s": 40.984,
    "l": 11.961
  },
  "oklch": {
    "l": 0.21362,
    "c": 0.03872,
    "h": 269.6
  },
  "luminance": 0.00956
}

Semantic roles & 50–950 ramp

primary
#12182B
secondary
#625836
accent
#B457D1
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020205
muted
#78787A

Preview Lab

Preview with #12182B

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

Preview Lab → · Contrast checker → · Palette generator →

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