#0C102A#0C102A

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

Color values

HEX#0C102A
RGBrgb(12, 16, 42)
HSLhsl(232, 56%, 11%)
HSVhsv(232, 71%, 16%)
CMYKcmyk(71.4%, 61.9%, 0%, 83.5%)
CIE-LABlab(5.56, 6.94, -17.86)
CIE-LCHlch(5.56, 19.16, 291.22°)
OKLaboklab(18.64% 0.0033 -0.0525)
OKLCHoklch(18.64% 0.053 273.6)
XYZxyz(0.7547, 0.6159, 2.2691)
Luminance0.0062 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C102A #2A260C
analogous
#0C1F2A #0C102A #170C2A
triadic
#0C102A #2A0C10 #102A0C
tetradic
#0C102A #2A0C1F #2A260C #0C2A17
square
#0C102A #2A0C1F #2A260C #0C2A17
split-complementary
#0C102A #2A170C #1F2A0C
monochromatic
#070918 #070918 #0C102A #1A225A #273489

Accessibility & contrast

On white

18.70
#0C102A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C102A
18.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C102A#FFFFFF#000000##FFFFFF
##0C102A1.0018.701.1218.70
#FFFFFF18.701.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#04142B
Deuteranopia (green-blind)
#021129
Tritanopia (blue-blind)
#00161A
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #0c102a;
/* rgb */ color: rgb(12, 16, 42);
/* oklch */ color: oklch(18.6% 0.053 273.6);
Tailwind
colors: {
  custom: {
    50: '#4d4e63',
    500: '#0c102a',
    950: '#000000',
  },
}
SCSS
$custom: #0c102a;
$custom-light: #4d4e63;
$custom-dark: #000000;
JSON
{
  "hex": "#0c102a",
  "rgb": {
    "r": 12,
    "g": 16,
    "b": 42
  },
  "hsl": {
    "h": 232,
    "s": 55.556,
    "l": 10.588
  },
  "oklch": {
    "l": 0.18638,
    "c": 0.05262,
    "h": 273.6
  },
  "luminance": 0.00616
}

Semantic roles & 50–950 ramp

primary
#0C102A
secondary
#655E2D
accent
#CB49DF
background
#F4F4F5
surface
#E7E7EA
border
#C3C3C6
text
#010105
muted
#777779

Preview Lab

Preview with #0C102A

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

Preview Lab → · Contrast checker → · Palette generator →

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