#0C1124#0C1124

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

Color values

HEX#0C1124
RGBrgb(12, 17, 36)
HSLhsl(228, 50%, 9%)
HSVhsv(228, 67%, 14%)
CMYKcmyk(66.7%, 52.8%, 0%, 85.9%)
CIE-LABlab(5.48, 3.85, -13.45)
CIE-LCHlch(5.48, 13.99, 285.99°)
OKLaboklab(18.41% 0.0007 -0.0397)
OKLCHoklch(18.41% 0.04 271)
XYZxyz(0.6704, 0.6064, 1.7504)
Luminance0.0061 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1124 #241F0C
analogous
#0C1D24 #0C1124 #130C24
triadic
#0C1124 #240C11 #11240C
tetradic
#0C1124 #240C1D #241F0C #0C2413
square
#0C1124 #240C1D #241F0C #0C2413
split-complementary
#0C1124 #24130C #1D240C
monochromatic
#080B17 #080B17 #0C1124 #1B2752 #2B3C80

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##0C1124#FFFFFF#000000##FFFFFF
##0C11241.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)
#091325
Deuteranopia (green-blind)
#071124
Tritanopia (blue-blind)
#031518
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #0c1124;
/* rgb */ color: rgb(12, 17, 36);
/* oklch */ color: oklch(18.4% 0.040 271.0);
Tailwind
colors: {
  custom: {
    50: '#4c4f5e',
    500: '#0c1124',
    950: '#000000',
  },
}
SCSS
$custom: #0c1124;
$custom-light: #4c4f5e;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1124",
  "rgb": {
    "r": 12,
    "g": 17,
    "b": 36
  },
  "hsl": {
    "h": 227.5,
    "s": 50,
    "l": 9.412
  },
  "oklch": {
    "l": 0.18406,
    "c": 0.03969,
    "h": 271
  },
  "luminance": 0.00606
}

Semantic roles & 50–950 ramp

primary
#0C1124
secondary
#5E542D
accent
#BD4EDA
background
#F4F4F5
surface
#E7E7E9
border
#C3C3C5
text
#010104
muted
#777779

Preview Lab

Preview with #0C1124

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

Preview Lab → · Contrast checker → · Palette generator →

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