#0C173A#0C173A

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

Color values

HEX#0C173A
RGBrgb(12, 23, 58)
HSLhsl(226, 66%, 14%)
HSVhsv(226, 79%, 23%)
CMYKcmyk(79.3%, 60.3%, 0%, 77.3%)
CIE-LABlab(8.96, 9.53, -24.16)
CIE-LCHlch(8.96, 25.97, 291.52°)
OKLaboklab(21.87% -0.0033 -0.0694)
OKLCHoklch(21.87% 0.07 267.3)
XYZxyz(1.2215, 0.9963, 4.1301)
Luminance0.0100 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C173A #3A2F0C
analogous
#0C2E3A #0C173A #180C3A
triadic
#0C173A #3A0C17 #173A0C
tetradic
#0C173A #3A0C2E #3A2F0C #0C3A18
square
#0C173A #3A0C2E #3A2F0C #0C3A18
split-complementary
#0C173A #3A180C #2E3A0C
monochromatic
#050A19 #050A19 #0C173A #162B6D #213F9F

Accessibility & contrast

On white

17.51
#0C173A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C173A
17.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C173A#FFFFFF#000000##FFFFFF
##0C173A1.0017.511.2017.51
#FFFFFF17.511.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#031C3B
Deuteranopia (green-blind)
#001739
Tritanopia (blue-blind)
#001F25
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #0c173a;
/* rgb */ color: rgb(12, 23, 58);
/* oklch */ color: oklch(21.9% 0.070 267.3);
Tailwind
colors: {
  custom: {
    50: '#525370',
    500: '#0c173a',
    950: '#000000',
  },
}
SCSS
$custom: #0c173a;
$custom-light: #525370;
$custom-dark: #000000;
JSON
{
  "hex": "#0c173a",
  "rgb": {
    "r": 12,
    "g": 23,
    "b": 58
  },
  "hsl": {
    "h": 225.652,
    "s": 65.714,
    "l": 13.725
  },
  "oklch": {
    "l": 0.21866,
    "c": 0.0695,
    "h": 267.3
  },
  "luminance": 0.00996
}

Semantic roles & 50–950 ramp

primary
#0C173A
secondary
#76642C
accent
#C03FE9
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020207
muted
#78787A

Preview Lab

Preview with #0C173A

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

Preview Lab → · Contrast checker → · Palette generator →

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