#0C102C#0C102C

#0C102C is a very dark, muted blue. Relative luminance 0.006; OKLCH L 18.8% C 0.056 H 273.6°. Best body text is #FFFFFF at 18.65:1 contrast (WCAG AA passes).

Color values

HEX#0C102C
RGBrgb(12, 16, 44)
HSLhsl(233, 57%, 11%)
HSVhsv(233, 73%, 17%)
CMYKcmyk(72.7%, 63.6%, 0%, 82.7%)
CIE-LABlab(5.70, 7.87, -19.15)
CIE-LCHlch(5.70, 20.71, 292.34°)
OKLaboklab(18.82% 0.0036 -0.0561)
OKLCHoklch(18.82% 0.056 273.6)
XYZxyz(0.7914, 0.6305, 2.4624)
Luminance0.0063 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C102C #2C280C
analogous
#0C202C #0C102C #180C2C
triadic
#0C102C #2C0C10 #102C0C
tetradic
#0C102C #2C0C20 #2C280C #0C2C18
square
#0C102C #2C0C20 #2C280C #0C2C18
split-complementary
#0C102C #2C180C #202C0C
monochromatic
#070918 #070918 #0C102C #19215C #26338C

Accessibility & contrast

On white

18.65
#0C102C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#0C102C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C102C
18.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C102C#FFFFFF#000000##FFFFFF
##0C102C1.0018.651.1318.65
#FFFFFF18.651.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#03142D
Deuteranopia (green-blind)
#00112B
Tritanopia (blue-blind)
#00161B
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #0c102c;
/* rgb */ color: rgb(12, 16, 44);
/* oklch */ color: oklch(18.8% 0.056 273.6);
Tailwind
colors: {
  custom: {
    50: '#4e4e65',
    500: '#0c102c',
    950: '#000000',
  },
}
SCSS
$custom: #0c102c;
$custom-light: #4e4e65;
$custom-dark: #000000;
JSON
{
  "hex": "#0c102c",
  "rgb": {
    "r": 12,
    "g": 16,
    "b": 44
  },
  "hsl": {
    "h": 232.5,
    "s": 57.143,
    "l": 10.98
  },
  "oklch": {
    "l": 0.18818,
    "c": 0.05625,
    "h": 273.6
  },
  "luminance": 0.00631
}

Semantic roles & 50–950 ramp

primary
#0C102C
secondary
#67602C
accent
#CD47E0
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020105
muted
#78777A

Preview Lab

Preview with #0C102C

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

Preview Lab → · Contrast checker → · Palette generator →

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