#0C173D#0C173D

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

Color values

HEX#0C173D
RGBrgb(12, 23, 61)
HSLhsl(227, 67%, 14%)
HSVhsv(227, 80%, 24%)
CMYKcmyk(80.3%, 62.3%, 0%, 76.1%)
CIE-LABlab(9.22, 10.87, -25.89)
CIE-LCHlch(9.22, 28.08, 292.77°)
OKLaboklab(22.15% -0.003 -0.0745)
OKLCHoklch(22.15% 0.075 267.7)
XYZxyz(1.3000, 1.0277, 4.5438)
Luminance0.0103 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C173D #3D320C
analogous
#0C303D #0C173D #1A0C3D
triadic
#0C173D #3D0C17 #173D0C
tetradic
#0C173D #3D0C30 #3D320C #0C3D1A
square
#0C173D #3D0C30 #3D320C #0C3D1A
split-complementary
#0C173D #3D1A0C #303D0C
monochromatic
#050A1A #050A1A #0C173D #162A70 #203EA3

Accessibility & contrast

On white

17.42
#0C173D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#0C173D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C173D
17.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C173D#FFFFFF#000000##FFFFFF
##0C173D1.0017.421.2117.42
#FFFFFF17.421.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C3E
Deuteranopia (green-blind)
#00183C
Tritanopia (blue-blind)
#002027
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #0c173d;
/* rgb */ color: rgb(12, 23, 61);
/* oklch */ color: oklch(22.1% 0.075 267.7);
Tailwind
colors: {
  custom: {
    50: '#535373',
    500: '#0c173d',
    950: '#000000',
  },
}
SCSS
$custom: #0c173d;
$custom-light: #535373;
$custom-dark: #000000;
JSON
{
  "hex": "#0c173d",
  "rgb": {
    "r": 12,
    "g": 23,
    "b": 61
  },
  "hsl": {
    "h": 226.531,
    "s": 67.123,
    "l": 14.314
  },
  "oklch": {
    "l": 0.22145,
    "c": 0.07456,
    "h": 267.7
  },
  "luminance": 0.01028
}

Semantic roles & 50–950 ramp

primary
#0C173D
secondary
#79682C
accent
#C33EEA
background
#F4F4F7
surface
#E7E7ED
border
#C3C3C8
text
#030208
muted
#78787B

Preview Lab

Preview with #0C173D

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

Preview Lab → · Contrast checker → · Palette generator →

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