#0C104D#0C104D

#0C104D is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.4% C 0.109 H 270.8°. Best body text is #FFFFFF at 17.54:1 contrast (WCAG AA passes).

Color values

HEX#0C104D
RGBrgb(12, 16, 77)
HSLhsl(236, 73%, 17%)
HSVhsv(236, 84%, 30%)
CMYKcmyk(84.4%, 79.2%, 0%, 69.8%)
CIE-LABlab(8.86, 22.98, -37.72)
CIE-LCHlch(8.86, 44.17, 301.36°)
OKLaboklab(22.39% 0.0016 -0.1092)
OKLCHoklch(22.39% 0.109 270.8)
XYZxyz(1.6760, 0.9844, 7.1214)
Luminance0.0098 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C104D #4D490C
analogous
#0C304D #0C104D #290C4D
triadic
#0C104D #4D0C10 #104D0C
tetradic
#0C104D #4D0C30 #4D490C #0C4D29
square
#0C104D #4D0C30 #4D490C #0C4D29
split-complementary
#0C104D #4D290C #304D0C
monochromatic
#04061A #04061A #0C104D #141B82 #1D26B7

Accessibility & contrast

On white

17.54
#0C104D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#0C104D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C104D
17.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C104D#FFFFFF#000000##FFFFFF
##0C104D1.0017.541.2017.54
#FFFFFF17.541.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C4F
Deuteranopia (green-blind)
#00164C
Tritanopia (blue-blind)
#00212D
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #0c104d;
/* rgb */ color: rgb(12, 16, 77);
/* oklch */ color: oklch(22.4% 0.109 270.8);
Tailwind
colors: {
  custom: {
    50: '#584e80',
    500: '#0c104d',
    950: '#000000',
  },
}
SCSS
$custom: #0c104d;
$custom-light: #584e80;
$custom-dark: #000000;
JSON
{
  "hex": "#0c104d",
  "rgb": {
    "r": 12,
    "g": 16,
    "b": 77
  },
  "hsl": {
    "h": 236.308,
    "s": 73.034,
    "l": 17.451
  },
  "oklch": {
    "l": 0.22388,
    "c": 0.10921,
    "h": 270.8
  },
  "luminance": 0.00985
}

Semantic roles & 50–950 ramp

primary
#0C104D
secondary
#89832C
accent
#E438F0
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04010A
muted
#79777C

Preview Lab

Preview with #0C104D

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

Preview Lab → · Contrast checker → · Palette generator →

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