#0C174B#0C174B

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

Color values

HEX#0C174B
RGBrgb(12, 23, 75)
HSLhsl(230, 72%, 17%)
HSVhsv(230, 84%, 29%)
CMYKcmyk(84%, 69.3%, 0%, 70.6%)
CIE-LABlab(10.55, 17.03, -33.56)
CIE-LCHlch(10.55, 37.63, 296.91°)
OKLaboklab(23.55% -0.0027 -0.097)
OKLCHoklch(23.55% 0.097 268.4)
XYZxyz(1.7276, 1.1988, 6.7956)
Luminance0.0120 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C174B #4B400C
analogous
#0C374B #0C174B #210C4B
triadic
#0C174B #4B0C17 #174B0C
tetradic
#0C174B #4B0C37 #4B400C #0C4B21
square
#0C174B #4B0C37 #4B400C #0C4B21
split-complementary
#0C174B #4B210C #374B0C
monochromatic
#04081A #04081A #0C174B #142780 #1D37B5

Accessibility & contrast

On white

16.94
#0C174B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C174B
16.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C174B#FFFFFF#000000##FFFFFF
##0C174B1.0016.941.2416.94
#FFFFFF16.941.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.941.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #0c174b;
/* rgb */ color: rgb(12, 23, 75);
/* oklch */ color: oklch(23.5% 0.097 268.4);
Tailwind
colors: {
  custom: {
    50: '#57537e',
    500: '#0c174b',
    950: '#000000',
  },
}
SCSS
$custom: #0c174b;
$custom-light: #57537e;
$custom-dark: #000000;
JSON
{
  "hex": "#0c174b",
  "rgb": {
    "r": 12,
    "g": 23,
    "b": 75
  },
  "hsl": {
    "h": 229.524,
    "s": 72.414,
    "l": 17.059
  },
  "oklch": {
    "l": 0.23549,
    "c": 0.09707,
    "h": 268.4
  },
  "luminance": 0.01199
}

Semantic roles & 50–950 ramp

primary
#0C174B
secondary
#87772C
accent
#CF39EF
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04020A
muted
#79787C

Preview Lab

Preview with #0C174B

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

Preview Lab → · Contrast checker → · Palette generator →

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