#0C112F#0C112F

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

Color values

HEX#0C112F
RGBrgb(12, 17, 47)
HSLhsl(231, 59%, 12%)
HSVhsv(231, 74%, 18%)
CMYKcmyk(74.5%, 63.8%, 0%, 81.6%)
CIE-LABlab(6.18, 8.79, -20.62)
CIE-LCHlch(6.18, 22.41, 293.08°)
OKLaboklab(19.35% 0.0026 -0.0599)
OKLCHoklch(19.35% 0.06 272.4)
XYZxyz(0.8650, 0.6842, 2.7753)
Luminance0.0068 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C112F #2F2A0C
analogous
#0C232F #0C112F #190C2F
triadic
#0C112F #2F0C11 #112F0C
tetradic
#0C112F #2F0C23 #2F2A0C #0C2F19
square
#0C112F #2F0C23 #2F2A0C #0C2F19
split-complementary
#0C112F #2F190C #232F0C
monochromatic
#060918 #060918 #0C112F #182360 #253491

Accessibility & contrast

On white

18.47
#0C112F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C112F
18.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C112F#FFFFFF#000000##FFFFFF
##0C112F1.0018.471.1418.47
#FFFFFF18.471.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.471.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #0c112f;
/* rgb */ color: rgb(12, 17, 47);
/* oklch */ color: oklch(19.3% 0.060 272.4);
Tailwind
colors: {
  custom: {
    50: '#4f4f68',
    500: '#0c112f',
    950: '#000000',
  },
}
SCSS
$custom: #0c112f;
$custom-light: #4f4f68;
$custom-dark: #000000;
JSON
{
  "hex": "#0c112f",
  "rgb": {
    "r": 12,
    "g": 17,
    "b": 47
  },
  "hsl": {
    "h": 231.429,
    "s": 59.322,
    "l": 11.569
  },
  "oklch": {
    "l": 0.19346,
    "c": 0.05994,
    "h": 272.4
  },
  "luminance": 0.00684
}

Semantic roles & 50–950 ramp

primary
#0C112F
secondary
#6B622C
accent
#CC45E3
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020106
muted
#78777A

Preview Lab

Preview with #0C112F

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

Preview Lab → · Contrast checker → · Palette generator →

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