#12182D#12182D

#12182D is a very dark, muted blue. Relative luminance 0.010; OKLCH L 21.5% C 0.042 H 270.5°. Best body text is #FFFFFF at 17.58:1 contrast (WCAG AA passes).

Color values

HEX#12182D
RGBrgb(18, 24, 45)
HSLhsl(227, 43%, 12%)
HSVhsv(227, 60%, 18%)
CMYKcmyk(60%, 46.7%, 0%, 82.4%)
CIE-LABlab(8.75, 4.66, -15.03)
CIE-LCHlch(8.75, 15.73, 287.24°)
OKLaboklab(21.5% 0.0003 -0.0424)
OKLCHoklch(21.5% 0.042 270.5)
XYZxyz(1.0496, 0.9713, 2.6143)
Luminance0.0097 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12182D #2D2712
analogous
#12262D #12182D #1A122D
triadic
#12182D #2D1218 #182D12
tetradic
#12182D #2D1226 #2D2712 #122D1A
square
#12182D #2D1226 #2D2712 #122D1A
split-complementary
#12182D #2D1A12 #262D12
monochromatic
#090C16 #090C16 #12182D #232F59 #354784

Accessibility & contrast

On white

17.58
#12182D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #12182D
17.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12182D#FFFFFF#000000##FFFFFF
##12182D1.0017.581.1917.58
#FFFFFF17.581.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#101A2E
Deuteranopia (green-blind)
#0D182D
Tritanopia (blue-blind)
#071C20
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #12182d;
/* rgb */ color: rgb(18, 24, 45);
/* oklch */ color: oklch(21.5% 0.042 270.5);
Tailwind
colors: {
  custom: {
    50: '#525466',
    500: '#12182d',
    950: '#000000',
  },
}
SCSS
$custom: #12182d;
$custom-light: #525466;
$custom-dark: #000000;
JSON
{
  "hex": "#12182d",
  "rgb": {
    "r": 18,
    "g": 24,
    "b": 45
  },
  "hsl": {
    "h": 226.667,
    "s": 42.857,
    "l": 12.353
  },
  "oklch": {
    "l": 0.21503,
    "c": 0.04243,
    "h": 270.5
  },
  "luminance": 0.00971
}

Semantic roles & 50–950 ramp

primary
#12182D
secondary
#655A36
accent
#B755D3
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020205
muted
#78787A

Preview Lab

Preview with #12182D

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

Preview Lab → · Contrast checker → · Palette generator →

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