#0C121E#0C121E

#0C121E is a very dark, muted blue. Relative luminance 0.006; OKLCH L 18.3% C 0.027 H 263.6°. Best body text is #FFFFFF at 18.73:1 contrast (WCAG AA passes).

Color values

HEX#0C121E
RGBrgb(12, 18, 30)
HSLhsl(220, 43%, 8%)
HSVhsv(220, 60%, 12%)
CMYKcmyk(60%, 40%, 0%, 88.2%)
CIE-LABlab(5.46, 1.13, -8.86)
CIE-LCHlch(5.46, 8.93, 277.28°)
OKLaboklab(18.26% -0.003 -0.0264)
OKLCHoklch(18.26% 0.027 263.6)
XYZxyz(0.6022, 0.6045, 1.3130)
Luminance0.0060 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C121E #1E180C
analogous
#0C1B1E #0C121E #0F0C1E
triadic
#0C121E #1E0C12 #121E0C
tetradic
#0C121E #1E0C1B #1E180C #0C1E0F
square
#0C121E #1E0C1B #1E180C #0C1E0F
split-complementary
#0C121E #1E0F0C #1B1E0C
monochromatic
#090D16 #090D16 #0C121E #1D2C4A #2F4675

Accessibility & contrast

On white

18.73
#0C121E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#0C121E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C121E
18.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C121E#FFFFFF#000000##FFFFFF
##0C121E1.0018.731.1218.73
#FFFFFF18.731.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E131F
Deuteranopia (green-blind)
#0C111E
Tritanopia (blue-blind)
#061516
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #0c121e;
/* rgb */ color: rgb(12, 18, 30);
/* oklch */ color: oklch(18.3% 0.027 263.6);
Tailwind
colors: {
  custom: {
    50: '#4c5059',
    500: '#0c121e',
    950: '#000000',
  },
}
SCSS
$custom: #0c121e;
$custom-light: #4c5059;
$custom-dark: #000000;
JSON
{
  "hex": "#0c121e",
  "rgb": {
    "r": 12,
    "g": 18,
    "b": 30
  },
  "hsl": {
    "h": 220,
    "s": 42.857,
    "l": 8.235
  },
  "oklch": {
    "l": 0.18261,
    "c": 0.02654,
    "h": 263.6
  },
  "luminance": 0.00605
}

Semantic roles & 50–950 ramp

primary
#0C121E
secondary
#574A2F
accent
#A955D3
background
#F4F4F5
surface
#E7E7E9
border
#C3C3C5
text
#010203
muted
#777878

Preview Lab

Preview with #0C121E

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

Preview Lab → · Contrast checker → · Palette generator →

#0C121E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva