#0C121F#0C121F

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

Color values

HEX#0C121F
RGBrgb(12, 18, 31)
HSLhsl(221, 44%, 8%)
HSVhsv(221, 61%, 12%)
CMYKcmyk(61.3%, 41.9%, 0%, 87.8%)
CIE-LABlab(5.51, 1.46, -9.56)
CIE-LCHlch(5.51, 9.67, 278.69°)
OKLaboklab(18.33% -0.0026 -0.0283)
OKLCHoklch(18.33% 0.028 264.8)
XYZxyz(0.6152, 0.6097, 1.3813)
Luminance0.0061 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C121F #1F190C
analogous
#0C1B1F #0C121F #0F0C1F
triadic
#0C121F #1F0C12 #121F0C
tetradic
#0C121F #1F0C1B #1F190C #0C1F0F
square
#0C121F #1F0C1B #1F190C #0C1F0F
split-complementary
#0C121F #1F0F0C #1B1F0C
monochromatic
#090D16 #090D16 #0C121F #1D2C4B #2E4577

Accessibility & contrast

On white

18.72
#0C121F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C121F
18.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C121F#FFFFFF#000000##FFFFFF
##0C121F1.0018.721.1218.72
#FFFFFF18.721.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D1320
Deuteranopia (green-blind)
#0B111F
Tritanopia (blue-blind)
#061517
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #0c121f;
/* rgb */ color: rgb(12, 18, 31);
/* oklch */ color: oklch(18.3% 0.028 264.8);
Tailwind
colors: {
  custom: {
    50: '#4c505a',
    500: '#0c121f',
    950: '#000000',
  },
}
SCSS
$custom: #0c121f;
$custom-light: #4c505a;
$custom-dark: #000000;
JSON
{
  "hex": "#0c121f",
  "rgb": {
    "r": 12,
    "g": 18,
    "b": 31
  },
  "hsl": {
    "h": 221.053,
    "s": 44.186,
    "l": 8.431
  },
  "oklch": {
    "l": 0.18327,
    "c": 0.02845,
    "h": 264.8
  },
  "luminance": 0.0061
}

Semantic roles & 50–950 ramp

primary
#0C121F
secondary
#584B2F
accent
#AB54D4
background
#F4F4F5
surface
#E7E7E9
border
#C3C3C5
text
#010203
muted
#777878

Preview Lab

Preview with #0C121F

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

Preview Lab → · Contrast checker → · Palette generator →

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