#12182E#12182E

#12182E is a very dark, muted blue. Relative luminance 0.010; OKLCH L 21.6% C 0.044 H 270.8°. Best body text is #FFFFFF at 17.56:1 contrast (WCAG AA passes).

Color values

HEX#12182E
RGBrgb(18, 24, 46)
HSLhsl(227, 44%, 13%)
HSVhsv(227, 61%, 18%)
CMYKcmyk(60.9%, 47.8%, 0%, 82%)
CIE-LABlab(8.82, 5.06, -15.66)
CIE-LCHlch(8.82, 16.46, 287.92°)
OKLaboklab(21.58% 0.0006 -0.0443)
OKLCHoklch(21.58% 0.044 270.8)
XYZxyz(1.0691, 0.9791, 2.7169)
Luminance0.0098 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#12182E #2E2812
analogous
#12262E #12182E #1A122E
triadic
#12182E #2E1218 #182E12
tetradic
#12182E #2E1226 #2E2812 #122E1A
square
#12182E #2E1226 #2E2812 #122E1A
split-complementary
#12182E #2E1A12 #262E12
monochromatic
#090B16 #090B16 #12182E #232F5A #344686

Accessibility & contrast

On white

17.56
#12182E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#12182E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #12182E
17.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##12182E#FFFFFF#000000##FFFFFF
##12182E1.0017.561.2017.56
#FFFFFF17.561.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F1A2F
Deuteranopia (green-blind)
#0D182E
Tritanopia (blue-blind)
#071D20
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #12182e;
/* rgb */ color: rgb(18, 24, 46);
/* oklch */ color: oklch(21.6% 0.044 270.8);
Tailwind
colors: {
  custom: {
    50: '#525467',
    500: '#12182e',
    950: '#000000',
  },
}
SCSS
$custom: #12182e;
$custom-light: #525467;
$custom-dark: #000000;
JSON
{
  "hex": "#12182e",
  "rgb": {
    "r": 18,
    "g": 24,
    "b": 46
  },
  "hsl": {
    "h": 227.143,
    "s": 43.75,
    "l": 12.549
  },
  "oklch": {
    "l": 0.21575,
    "c": 0.04428,
    "h": 270.8
  },
  "luminance": 0.00979
}

Semantic roles & 50–950 ramp

primary
#12182E
secondary
#665C36
accent
#B854D3
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020206
muted
#78787A

Preview Lab

Preview with #12182E

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

Preview Lab → · Contrast checker → · Palette generator →

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