#0C174A#0C174A

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

Color values

HEX#0C174A
RGBrgb(12, 23, 74)
HSLhsl(229, 72%, 17%)
HSVhsv(229, 84%, 29%)
CMYKcmyk(83.8%, 68.9%, 0%, 71%)
CIE-LABlab(10.45, 16.60, -33.03)
CIE-LCHlch(10.45, 36.97, 296.68°)
OKLaboklab(23.44% -0.0027 -0.0955)
OKLCHoklch(23.44% 0.096 268.4)
XYZxyz(1.6936, 1.1852, 6.6167)
Luminance0.0118 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C174A #4A3F0C
analogous
#0C364A #0C174A #200C4A
triadic
#0C174A #4A0C17 #174A0C
tetradic
#0C174A #4A0C36 #4A3F0C #0C4A20
square
#0C174A #4A0C36 #4A3F0C #0C4A20
split-complementary
#0C174A #4A200C #364A0C
monochromatic
#04081A #04081A #0C174A #15277F #1D38B3

Accessibility & contrast

On white

16.98
#0C174A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#0C174A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C174A
16.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C174A#FFFFFF#000000##FFFFFF
##0C174A1.0016.981.2416.98
#FFFFFF16.981.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4C
Deuteranopia (green-blind)
#001A49
Tritanopia (blue-blind)
#00242D
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #0c174a;
/* rgb */ color: rgb(12, 23, 74);
/* oklch */ color: oklch(23.4% 0.096 268.4);
Tailwind
colors: {
  custom: {
    50: '#56537d',
    500: '#0c174a',
    950: '#000000',
  },
}
SCSS
$custom: #0c174a;
$custom-light: #56537d;
$custom-dark: #000000;
JSON
{
  "hex": "#0c174a",
  "rgb": {
    "r": 12,
    "g": 23,
    "b": 74
  },
  "hsl": {
    "h": 229.355,
    "s": 72.093,
    "l": 16.863
  },
  "oklch": {
    "l": 0.23444,
    "c": 0.09552,
    "h": 268.4
  },
  "luminance": 0.01185
}

Semantic roles & 50–950 ramp

primary
#0C174A
secondary
#86762C
accent
#CF39EF
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#03020A
muted
#78787C

Preview Lab

Preview with #0C174A

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

Preview Lab → · Contrast checker → · Palette generator →

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