#0C173F#0C173F

#0C173F is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 22.3% C 0.078 H 267.9°. Best body text is #FFFFFF at 17.36:1 contrast (WCAG AA passes).

Color values

HEX#0C173F
RGBrgb(12, 23, 63)
HSLhsl(227, 68%, 15%)
HSVhsv(227, 81%, 25%)
CMYKcmyk(81%, 63.5%, 0%, 75.3%)
CIE-LABlab(9.40, 11.76, -27.02)
CIE-LCHlch(9.40, 29.47, 293.51°)
OKLaboklab(22.34% -0.0029 -0.0778)
OKLCHoklch(22.34% 0.078 267.9)
XYZxyz(1.3549, 1.0497, 4.8329)
Luminance0.0105 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C173F #3F340C
analogous
#0C313F #0C173F #1B0C3F
triadic
#0C173F #3F0C17 #173F0C
tetradic
#0C173F #3F0C31 #3F340C #0C3F1B
square
#0C173F #3F0C31 #3F340C #0C3F1B
split-complementary
#0C173F #3F1B0C #313F0C
monochromatic
#05091A #05091A #0C173F #162A72 #203DA6

Accessibility & contrast

On white

17.36
#0C173F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C173F
17.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C173F#FFFFFF#000000##FFFFFF
##0C173F1.0017.361.2117.36
#FFFFFF17.361.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D40
Deuteranopia (green-blind)
#00183E
Tritanopia (blue-blind)
#002128
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #0c173f;
/* rgb */ color: rgb(12, 23, 63);
/* oklch */ color: oklch(22.3% 0.078 267.9);
Tailwind
colors: {
  custom: {
    50: '#535374',
    500: '#0c173f',
    950: '#000000',
  },
}
SCSS
$custom: #0c173f;
$custom-light: #535374;
$custom-dark: #000000;
JSON
{
  "hex": "#0c173f",
  "rgb": {
    "r": 12,
    "g": 23,
    "b": 63
  },
  "hsl": {
    "h": 227.059,
    "s": 68,
    "l": 14.706
  },
  "oklch": {
    "l": 0.22335,
    "c": 0.07788,
    "h": 267.9
  },
  "luminance": 0.0105
}

Semantic roles & 50–950 ramp

primary
#0C173F
secondary
#7B6A2C
accent
#C53DEB
background
#F5F4F7
surface
#E8E7ED
border
#C4C3C8
text
#030208
muted
#78787B

Preview Lab

Preview with #0C173F

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

Preview Lab → · Contrast checker → · Palette generator →

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