#12182C#12182C

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

Color values

HEX#12182C
RGBrgb(18, 24, 44)
HSLhsl(226, 42%, 12%)
HSVhsv(226, 59%, 17%)
CMYKcmyk(59.1%, 45.5%, 0%, 82.7%)
CIE-LABlab(8.69, 4.27, -14.39)
CIE-LCHlch(8.69, 15.01, 286.51°)
OKLaboklab(21.43% 0.0001 -0.0406)
OKLCHoklch(21.43% 0.041 270.1)
XYZxyz(1.0306, 0.9637, 2.5141)
Luminance0.0096 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12182C #2C2612
analogous
#12252C #12182C #19122C
triadic
#12182C #2C1218 #182C12
tetradic
#12182C #2C1225 #2C2612 #122C19
square
#12182C #2C1225 #2C2612 #122C19
split-complementary
#12182C #2C1912 #252C12
monochromatic
#090C16 #090C16 #12182C #243057 #364783

Accessibility & contrast

On white

17.61
#12182C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12182C
17.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12182C#FFFFFF#000000##FFFFFF
##12182C1.0017.611.1917.61
#FFFFFF17.611.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#101A2D
Deuteranopia (green-blind)
#0E182C
Tritanopia (blue-blind)
#081C1F
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #12182c;
/* rgb */ color: rgb(18, 24, 44);
/* oklch */ color: oklch(21.4% 0.041 270.1);
Tailwind
colors: {
  custom: {
    50: '#515465',
    500: '#12182c',
    950: '#000000',
  },
}
SCSS
$custom: #12182c;
$custom-light: #515465;
$custom-dark: #000000;
JSON
{
  "hex": "#12182c",
  "rgb": {
    "r": 18,
    "g": 24,
    "b": 44
  },
  "hsl": {
    "h": 226.154,
    "s": 41.935,
    "l": 12.157
  },
  "oklch": {
    "l": 0.21431,
    "c": 0.04058,
    "h": 270.1
  },
  "luminance": 0.00964
}

Semantic roles & 50–950 ramp

primary
#12182C
secondary
#635936
accent
#B556D2
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020205
muted
#78787A

Preview Lab

Preview with #12182C

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

Preview Lab → · Contrast checker → · Palette generator →

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