#0C174D#0C174D

#0C174D is a very dark, moderate blue. Relative luminance 0.012; OKLCH L 23.8% C 0.100 H 268.4°. Best body text is #FFFFFF at 16.86:1 contrast (WCAG AA passes).

Color values

HEX#0C174D
RGBrgb(12, 23, 77)
HSLhsl(230, 73%, 17%)
HSVhsv(230, 84%, 30%)
CMYKcmyk(84.4%, 70.1%, 0%, 69.8%)
CIE-LABlab(10.75, 17.89, -34.61)
CIE-LCHlch(10.75, 38.96, 297.34°)
OKLaboklab(23.76% -0.0027 -0.1001)
OKLCHoklch(23.76% 0.1 268.4)
XYZxyz(1.7971, 1.2266, 7.1618)
Luminance0.0123 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C174D #4D420C
analogous
#0C384D #0C174D #210C4D
triadic
#0C174D #4D0C17 #174D0C
tetradic
#0C174D #4D0C38 #4D420C #0C4D21
square
#0C174D #4D0C38 #4D420C #0C4D21
split-complementary
#0C174D #4D210C #384D0C
monochromatic
#04081A #04081A #0C174D #142782 #1D37B7

Accessibility & contrast

On white

16.86
#0C174D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#0C174D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C174D
16.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C174D#FFFFFF#000000##FFFFFF
##0C174D1.0016.861.2516.86
#FFFFFF16.861.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204F
Deuteranopia (green-blind)
#001A4C
Tritanopia (blue-blind)
#00252F
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #0c174d;
/* rgb */ color: rgb(12, 23, 77);
/* oklch */ color: oklch(23.8% 0.100 268.4);
Tailwind
colors: {
  custom: {
    50: '#57537f',
    500: '#0c174d',
    950: '#000000',
  },
}
SCSS
$custom: #0c174d;
$custom-light: #57537f;
$custom-dark: #000000;
JSON
{
  "hex": "#0c174d",
  "rgb": {
    "r": 12,
    "g": 23,
    "b": 77
  },
  "hsl": {
    "h": 229.846,
    "s": 73.034,
    "l": 17.451
  },
  "oklch": {
    "l": 0.23762,
    "c": 0.10014,
    "h": 268.4
  },
  "luminance": 0.01227
}

Semantic roles & 50–950 ramp

primary
#0C174D
secondary
#89792C
accent
#D138F0
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04020A
muted
#79787C

Preview Lab

Preview with #0C174D

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

Preview Lab → · Contrast checker → · Palette generator →

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