#0C173C#0C173C

#0C173C is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.1% C 0.073 H 267.6°. Best body text is #FFFFFF at 17.45:1 contrast (WCAG AA passes).

Color values

HEX#0C173C
RGBrgb(12, 23, 60)
HSLhsl(226, 67%, 14%)
HSVhsv(226, 80%, 24%)
CMYKcmyk(80%, 61.7%, 0%, 76.5%)
CIE-LABlab(9.13, 10.42, -25.32)
CIE-LCHlch(9.13, 27.38, 292.37°)
OKLaboklab(22.05% -0.0031 -0.0728)
OKLCHoklch(22.05% 0.073 267.6)
XYZxyz(1.2733, 1.0171, 4.4033)
Luminance0.0102 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C173C #3C310C
analogous
#0C2F3C #0C173C #190C3C
triadic
#0C173C #3C0C17 #173C0C
tetradic
#0C173C #3C0C2F #3C310C #0C3C19
square
#0C173C #3C0C2F #3C310C #0C3C19
split-complementary
#0C173C #3C190C #2F3C0C
monochromatic
#050A1A #050A1A #0C173C #162B6F #203EA2

Accessibility & contrast

On white

17.45
#0C173C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C173C
17.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C173C#FFFFFF#000000##FFFFFF
##0C173C1.0017.451.2017.45
#FFFFFF17.451.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#011C3D
Deuteranopia (green-blind)
#00183B
Tritanopia (blue-blind)
#002026
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #0c173c;
/* rgb */ color: rgb(12, 23, 60);
/* oklch */ color: oklch(22.1% 0.073 267.6);
Tailwind
colors: {
  custom: {
    50: '#525372',
    500: '#0c173c',
    950: '#000000',
  },
}
SCSS
$custom: #0c173c;
$custom-light: #525372;
$custom-dark: #000000;
JSON
{
  "hex": "#0c173c",
  "rgb": {
    "r": 12,
    "g": 23,
    "b": 60
  },
  "hsl": {
    "h": 226.25,
    "s": 66.667,
    "l": 14.118
  },
  "oklch": {
    "l": 0.22051,
    "c": 0.07289,
    "h": 267.6
  },
  "luminance": 0.01017
}

Semantic roles & 50–950 ramp

primary
#0C173C
secondary
#78672C
accent
#C23EEA
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#030208
muted
#78787B

Preview Lab

Preview with #0C173C

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

Preview Lab → · Contrast checker → · Palette generator →

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