#0C163D#0C163D

#0C163D is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 21.9% C 0.076 H 268.5°. Best body text is #FFFFFF at 17.53:1 contrast (WCAG AA passes).

Color values

HEX#0C163D
RGBrgb(12, 22, 61)
HSLhsl(228, 67%, 14%)
HSVhsv(228, 80%, 24%)
CMYKcmyk(80.3%, 63.9%, 0%, 76.1%)
CIE-LABlab(8.90, 11.66, -26.41)
CIE-LCHlch(8.90, 28.87, 293.81°)
OKLaboklab(21.9% -0.002 -0.0761)
OKLCHoklch(21.9% 0.076 268.5)
XYZxyz(1.2805, 0.9888, 4.5373)
Luminance0.0099 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C163D #3D330C
analogous
#0C2F3D #0C163D #1B0C3D
triadic
#0C163D #3D0C16 #163D0C
tetradic
#0C163D #3D0C2F #3D330C #0C3D1B
square
#0C163D #3D0C2F #3D330C #0C3D1B
split-complementary
#0C163D #3D1B0C #2F3D0C
monochromatic
#05091A #05091A #0C163D #162870 #203BA3

Accessibility & contrast

On white

17.53
#0C163D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C163D
17.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C163D#FFFFFF#000000##FFFFFF
##0C163D1.0017.531.2017.53
#FFFFFF17.531.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C3E
Deuteranopia (green-blind)
#00173C
Tritanopia (blue-blind)
#001F26
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #0c163d;
/* rgb */ color: rgb(12, 22, 61);
/* oklch */ color: oklch(21.9% 0.076 268.5);
Tailwind
colors: {
  custom: {
    50: '#535273',
    500: '#0c163d',
    950: '#000000',
  },
}
SCSS
$custom: #0c163d;
$custom-light: #535273;
$custom-dark: #000000;
JSON
{
  "hex": "#0c163d",
  "rgb": {
    "r": 12,
    "g": 22,
    "b": 61
  },
  "hsl": {
    "h": 227.755,
    "s": 67.123,
    "l": 14.314
  },
  "oklch": {
    "l": 0.21902,
    "c": 0.07609,
    "h": 268.5
  },
  "luminance": 0.00989
}

Semantic roles & 50–950 ramp

primary
#0C163D
secondary
#79692C
accent
#C73EEA
background
#F4F4F7
surface
#E7E7ED
border
#C3C3C8
text
#030208
muted
#78787B

Preview Lab

Preview with #0C163D

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

Preview Lab → · Contrast checker → · Palette generator →

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