#0C112E#0C112E

#0C112E is a very dark, muted blue. Relative luminance 0.007; OKLCH L 19.3% C 0.058 H 272.4°. Best body text is #FFFFFF at 18.50:1 contrast (WCAG AA passes).

Color values

HEX#0C112E
RGBrgb(12, 17, 46)
HSLhsl(231, 59%, 11%)
HSVhsv(231, 74%, 18%)
CMYKcmyk(73.9%, 63%, 0%, 82%)
CIE-LABlab(6.11, 8.29, -19.99)
CIE-LCHlch(6.11, 21.64, 292.52°)
OKLaboklab(19.25% 0.0025 -0.0581)
OKLCHoklch(19.25% 0.058 272.4)
XYZxyz(0.8450, 0.6762, 2.6702)
Luminance0.0068 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C112E #2E290C
analogous
#0C222E #0C112E #180C2E
triadic
#0C112E #2E0C11 #112E0C
tetradic
#0C112E #2E0C22 #2E290C #0C2E18
square
#0C112E #2E0C22 #2E290C #0C2E18
split-complementary
#0C112E #2E180C #222E0C
monochromatic
#060918 #060918 #0C112E #19235F #25358F

Accessibility & contrast

On white

18.50
#0C112E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#0C112E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C112E
18.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C112E#FFFFFF#000000##FFFFFF
##0C112E1.0018.501.1418.50
#FFFFFF18.501.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#03152F
Deuteranopia (green-blind)
#00122D
Tritanopia (blue-blind)
#00181D
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #0c112e;
/* rgb */ color: rgb(12, 17, 46);
/* oklch */ color: oklch(19.3% 0.058 272.4);
Tailwind
colors: {
  custom: {
    50: '#4e4f67',
    500: '#0c112e',
    950: '#000000',
  },
}
SCSS
$custom: #0c112e;
$custom-light: #4e4f67;
$custom-dark: #000000;
JSON
{
  "hex": "#0c112e",
  "rgb": {
    "r": 12,
    "g": 17,
    "b": 46
  },
  "hsl": {
    "h": 231.176,
    "s": 58.621,
    "l": 11.373
  },
  "oklch": {
    "l": 0.19254,
    "c": 0.05817,
    "h": 272.4
  },
  "luminance": 0.00676
}

Semantic roles & 50–950 ramp

primary
#0C112E
secondary
#6A612C
accent
#CB46E2
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020106
muted
#78777A

Preview Lab

Preview with #0C112E

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

Preview Lab → · Contrast checker → · Palette generator →

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