#0C164B#0C164B

#0C164B is a very dark, moderate blue. Relative luminance 0.012; OKLCH L 23.3% C 0.098 H 268.9°. Best body text is #FFFFFF at 17.05:1 contrast (WCAG AA passes).

Color values

HEX#0C164B
RGBrgb(12, 22, 75)
HSLhsl(230, 72%, 17%)
HSVhsv(230, 84%, 29%)
CMYKcmyk(84%, 70.7%, 0%, 70.6%)
CIE-LABlab(10.26, 17.79, -34.04)
CIE-LCHlch(10.26, 38.40, 297.59°)
OKLaboklab(23.34% -0.002 -0.0984)
OKLCHoklch(23.34% 0.098 268.9)
XYZxyz(1.7081, 1.1598, 6.7891)
Luminance0.0116 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C164B #4B410C
analogous
#0C364B #0C164B #220C4B
triadic
#0C164B #4B0C16 #164B0C
tetradic
#0C164B #4B0C36 #4B410C #0C4B22
square
#0C164B #4B0C36 #4B410C #0C4B22
split-complementary
#0C164B #4B220C #364B0C
monochromatic
#04081A #04081A #0C164B #142580 #1D35B5

Accessibility & contrast

On white

17.05
#0C164B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#0C164B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C164B
17.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C164B#FFFFFF#000000##FFFFFF
##0C164B1.0017.051.2317.05
#FFFFFF17.051.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4D
Deuteranopia (green-blind)
#00194A
Tritanopia (blue-blind)
#00242E
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #0c164b;
/* rgb */ color: rgb(12, 22, 75);
/* oklch */ color: oklch(23.3% 0.098 268.9);
Tailwind
colors: {
  custom: {
    50: '#57537e',
    500: '#0c164b',
    950: '#000000',
  },
}
SCSS
$custom: #0c164b;
$custom-light: #57537e;
$custom-dark: #000000;
JSON
{
  "hex": "#0c164b",
  "rgb": {
    "r": 12,
    "g": 22,
    "b": 75
  },
  "hsl": {
    "h": 230.476,
    "s": 72.414,
    "l": 17.059
  },
  "oklch": {
    "l": 0.23335,
    "c": 0.09845,
    "h": 268.9
  },
  "luminance": 0.0116
}

Semantic roles & 50–950 ramp

primary
#0C164B
secondary
#87782C
accent
#D239EF
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04020A
muted
#79787C

Preview Lab

Preview with #0C164B

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

Preview Lab → · Contrast checker → · Palette generator →

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