#0C102D#0C102D

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

Color values

HEX#0C102D
RGBrgb(12, 16, 45)
HSLhsl(233, 58%, 11%)
HSVhsv(233, 73%, 18%)
CMYKcmyk(73.3%, 64.4%, 0%, 82.4%)
CIE-LABlab(5.76, 8.35, -19.79)
CIE-LCHlch(5.76, 21.48, 292.88°)
OKLaboklab(18.91% 0.0037 -0.0579)
OKLCHoklch(18.91% 0.058 273.6)
XYZxyz(0.8104, 0.6381, 2.5626)
Luminance0.0064 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C102D #2D290C
analogous
#0C202D #0C102D #180C2D
triadic
#0C102D #2D0C10 #102D0C
tetradic
#0C102D #2D0C20 #2D290C #0C2D18
square
#0C102D #2D0C20 #2D290C #0C2D18
split-complementary
#0C102D #2D180C #202D0C
monochromatic
#060918 #060918 #0C102D #19215D #26328E

Accessibility & contrast

On white

18.62
#0C102D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C102D
18.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C102D#FFFFFF#000000##FFFFFF
##0C102D1.0018.621.1318.62
#FFFFFF18.621.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#02142E
Deuteranopia (green-blind)
#00112C
Tritanopia (blue-blind)
#00171C
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #0c102d;
/* rgb */ color: rgb(12, 16, 45);
/* oklch */ color: oklch(18.9% 0.058 273.6);
Tailwind
colors: {
  custom: {
    50: '#4e4e66',
    500: '#0c102d',
    950: '#000000',
  },
}
SCSS
$custom: #0c102d;
$custom-light: #4e4e66;
$custom-dark: #000000;
JSON
{
  "hex": "#0c102d",
  "rgb": {
    "r": 12,
    "g": 16,
    "b": 45
  },
  "hsl": {
    "h": 232.727,
    "s": 57.895,
    "l": 11.176
  },
  "oklch": {
    "l": 0.18911,
    "c": 0.05804,
    "h": 273.6
  },
  "luminance": 0.00638
}

Semantic roles & 50–950 ramp

primary
#0C102D
secondary
#69612C
accent
#CE47E1
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020106
muted
#78777A

Preview Lab

Preview with #0C102D

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

Preview Lab → · Contrast checker → · Palette generator →

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