#0C102F#0C102F

#0C102F is a very dark, moderate blue. Relative luminance 0.007; OKLCH L 19.1% C 0.062 H 273.5°. Best body text is #FFFFFF at 18.57:1 contrast (WCAG AA passes).

Color values

HEX#0C102F
RGBrgb(12, 16, 47)
HSLhsl(233, 59%, 12%)
HSVhsv(233, 74%, 18%)
CMYKcmyk(74.5%, 66%, 0%, 81.6%)
CIE-LABlab(5.91, 9.35, -21.05)
CIE-LCHlch(5.91, 23.04, 293.95°)
OKLaboklab(19.1% 0.0038 -0.0615)
OKLCHoklch(19.1% 0.062 273.5)
XYZxyz(0.8498, 0.6539, 2.7702)
Luminance0.0065 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C102F #2F2B0C
analogous
#0C222F #0C102F #1A0C2F
triadic
#0C102F #2F0C10 #102F0C
tetradic
#0C102F #2F0C22 #2F2B0C #0C2F1A
square
#0C102F #2F0C22 #2F2B0C #0C2F1A
split-complementary
#0C102F #2F1A0C #222F0C
monochromatic
#060818 #060818 #0C102F #182160 #253191

Accessibility & contrast

On white

18.57
#0C102F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C102F
18.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C102F#FFFFFF#000000##FFFFFF
##0C102F1.0018.571.1318.57
#FFFFFF18.571.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#011530
Deuteranopia (green-blind)
#00122E
Tritanopia (blue-blind)
#00171D
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #0c102f;
/* rgb */ color: rgb(12, 16, 47);
/* oklch */ color: oklch(19.1% 0.062 273.5);
Tailwind
colors: {
  custom: {
    50: '#4f4e68',
    500: '#0c102f',
    950: '#000000',
  },
}
SCSS
$custom: #0c102f;
$custom-light: #4f4e68;
$custom-dark: #000000;
JSON
{
  "hex": "#0c102f",
  "rgb": {
    "r": 12,
    "g": 16,
    "b": 47
  },
  "hsl": {
    "h": 233.143,
    "s": 59.322,
    "l": 11.569
  },
  "oklch": {
    "l": 0.19098,
    "c": 0.0616,
    "h": 273.5
  },
  "luminance": 0.00654
}

Semantic roles & 50–950 ramp

primary
#0C102F
secondary
#6B642C
accent
#D145E3
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020106
muted
#78777A

Preview Lab

Preview with #0C102F

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

Preview Lab → · Contrast checker → · Palette generator →

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