#0C102E#0C102E

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

Color values

HEX#0C102E
RGBrgb(12, 16, 46)
HSLhsl(233, 59%, 11%)
HSVhsv(233, 74%, 18%)
CMYKcmyk(73.9%, 65.2%, 0%, 82%)
CIE-LABlab(5.83, 8.85, -20.42)
CIE-LCHlch(5.83, 22.26, 293.42°)
OKLaboklab(19% 0.0037 -0.0597)
OKLCHoklch(19% 0.06 273.6)
XYZxyz(0.8299, 0.6459, 2.6652)
Luminance0.0065 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C102E #2E2A0C
analogous
#0C212E #0C102E #190C2E
triadic
#0C102E #2E0C10 #102E0C
tetradic
#0C102E #2E0C21 #2E2A0C #0C2E19
square
#0C102E #2E0C21 #2E2A0C #0C2E19
split-complementary
#0C102E #2E190C #212E0C
monochromatic
#060818 #060818 #0C102E #19215F #25328F

Accessibility & contrast

On white

18.60
#0C102E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C102E
18.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C102E#FFFFFF#000000##FFFFFF
##0C102E1.0018.601.1318.60
#FFFFFF18.601.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#01142F
Deuteranopia (green-blind)
#00112D
Tritanopia (blue-blind)
#00171C
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #0c102e;
/* rgb */ color: rgb(12, 16, 46);
/* oklch */ color: oklch(19.0% 0.060 273.6);
Tailwind
colors: {
  custom: {
    50: '#4e4e67',
    500: '#0c102e',
    950: '#000000',
  },
}
SCSS
$custom: #0c102e;
$custom-light: #4e4e67;
$custom-dark: #000000;
JSON
{
  "hex": "#0c102e",
  "rgb": {
    "r": 12,
    "g": 16,
    "b": 46
  },
  "hsl": {
    "h": 232.941,
    "s": 58.621,
    "l": 11.373
  },
  "oklch": {
    "l": 0.19004,
    "c": 0.05983,
    "h": 273.6
  },
  "luminance": 0.00646
}

Semantic roles & 50–950 ramp

primary
#0C102E
secondary
#6A622C
accent
#CF46E2
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020106
muted
#78777A

Preview Lab

Preview with #0C102E

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

Preview Lab → · Contrast checker → · Palette generator →

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