#0C174C#0C174C

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

Color values

HEX#0C174C
RGBrgb(12, 23, 76)
HSLhsl(230, 73%, 17%)
HSVhsv(230, 84%, 30%)
CMYKcmyk(84.2%, 69.7%, 0%, 70.2%)
CIE-LABlab(10.65, 17.46, -34.09)
CIE-LCHlch(10.65, 38.30, 297.13°)
OKLaboklab(23.66% -0.0027 -0.0986)
OKLCHoklch(23.66% 0.099 268.4)
XYZxyz(1.7621, 1.2126, 6.9773)
Luminance0.0121 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C174C #4C410C
analogous
#0C374C #0C174C #210C4C
triadic
#0C174C #4C0C17 #174C0C
tetradic
#0C174C #4C0C37 #4C410C #0C4C21
square
#0C174C #4C0C37 #4C410C #0C4C21
split-complementary
#0C174C #4C210C #374C0C
monochromatic
#04081A #04081A #0C174C #142781 #1D37B6

Accessibility & contrast

On white

16.90
#0C174C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C174C
16.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C174C#FFFFFF#000000##FFFFFF
##0C174C1.0016.901.2416.90
#FFFFFF16.901.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.901.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #0c174c;
/* rgb */ color: rgb(12, 23, 76);
/* oklch */ color: oklch(23.7% 0.099 268.4);
Tailwind
colors: {
  custom: {
    50: '#57537f',
    500: '#0c174c',
    950: '#000000',
  },
}
SCSS
$custom: #0c174c;
$custom-light: #57537f;
$custom-dark: #000000;
JSON
{
  "hex": "#0c174c",
  "rgb": {
    "r": 12,
    "g": 23,
    "b": 76
  },
  "hsl": {
    "h": 229.688,
    "s": 72.727,
    "l": 17.255
  },
  "oklch": {
    "l": 0.23656,
    "c": 0.09861,
    "h": 268.4
  },
  "luminance": 0.01213
}

Semantic roles & 50–950 ramp

primary
#0C174C
secondary
#88782C
accent
#D038EF
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04020A
muted
#79787C

Preview Lab

Preview with #0C174C

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

Preview Lab → · Contrast checker → · Palette generator →

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